bcca3cf4a9df698d3b06178b5fbd354710a6033a
[occt.git] / src / BRepFill / BRepFill_NSections.cdl
1 -- File:        BRepFill_NSections.cdl
2 -- Created:     Tue Dec 29 17:00:36 1998
3 -- Author:      Joelle CHAUVET
4 --              <jct@sgi64>
5 ---Copyright:    Matra Datavision 1998
6
7
8 class NSections from BRepFill inherits  SectionLaw  from  BRepFill
9
10         ---Purpose: Build Section Law, with N Sections
11         --          
12         ---Level: Advanced
13        
14 uses 
15  SectionLaw          from  GeomFill,  
16  HArray1OfSectionLaw from  GeomFill, 
17  BSplineSurface             from  Geom, 
18  HArray2OfShape      from  TopTools,  
19  SequenceOfReal      from  TColStd,  
20  SequenceOfShape     from  TopTools,  
21  Shape               from  GeomAbs,
22  Vertex              from  TopoDS, 
23  Wire                from  TopoDS,  
24  Edge                from  TopoDS,  
25  Shape               from  TopoDS, 
26  Function            from  Law
27
28 is  
29   Create (S:SequenceOfShape  from  TopTools;   
30           Build :  Boolean = Standard_True)   
31      ---Purpose: Construct    
32   returns NSections from BRepFill;  
33    
34   Create (S  :  SequenceOfShape  from  TopTools; 
35           P  :  SequenceOfReal  from  TColStd; 
36           VF,VL :  Real; 
37           Build :  Boolean = Standard_True)   
38      ---Purpose: Construct    
39   returns NSections from BRepFill;  
40    
41
42   IsVertex(me) 
43     ---Purpose: Say if the input shape is a  vertex. 
44   returns  Boolean   
45   is  redefined; 
46    
47   IsConstant(me) 
48     ---Purpose: Say if the Law is  Constant.        
49   returns  Boolean   
50   is  redefined;        
51
52   ConcatenedLaw(me)  
53    ---Purpose: Give the law build on a concatened section         
54   returns SectionLaw from GeomFill 
55   is  redefined;    
56   
57   Continuity(me; Index  :  Integer; 
58                  TolAngular  :  Real)
59   returns  Shape  from  GeomAbs  
60   is  redefined;  
61    
62   VertexTol(me; Index  :  Integer;   
63                 Param  :  Real) 
64   returns  Real   
65   is  redefined;  
66   
67   Vertex(me;  Index  :  Integer; 
68               Param  :  Real) 
69   returns Vertex  from  TopoDS 
70   is  redefined;            
71    
72   D0(me:mutable;  Param  :  Real;   
73      S  :  out  Shape  from  TopoDS)   
74     is  redefined;  
75    
76   Init(me  :  mutable;  P  : SequenceOfReal  from  TColStd; 
77                         B  : Boolean  from  Standard )  is  private;
78    
79 fields
80   VFirst,  VLast : Real;
81   myShapes:  SequenceOfShape  from  TopTools;
82   myParams:  SequenceOfReal  from  TColStd;   
83   myEdges:  HArray2OfShape from  TopTools;   
84   mySurface:  BSplineSurface from  Geom;   
85 end NSections;