]> SALOME platform Git repositories - modules/geom.git/blob - src/PARTITION/Partition_Loop2d.cdl
Salome HOME
NRI : First integration.
[modules/geom.git] / src / PARTITION / Partition_Loop2d.cdl
1 -- File   :     Partition_Loop2d.cdl
2 -- Created:     Thu Aug 02 16:07:39 2001
3 -- Author :     Benedicte MARTIN
4 --              
5 ---Copyright:    OPEN CASCADE 2001
6
7
8 class Loop2d from Partition
9
10         ---Purpose: Builds the loops from a set of edges on a face.
11         --          It works in  supposition  that  all constant edges
12         --          are split edges of  an initialization face and all
13         --          section edges are new on the face
14
15 uses
16
17     Orientation               from TopAbs,
18     Boolean                   from Standard,
19     Face                      from TopoDS,
20     Image                     from BRepAlgo,
21     Face                      from TopoDS,
22     Edge                      from TopoDS,
23     ListOfShape               from TopTools,
24     DataMapOfShapeListOfShape from TopTools,
25     MapOfShape                from TopTools
26 is
27
28     Create;
29     
30     Init (me : in out; F : Face from TopoDS)
31         ---Purpose: Init with <F> the set of edges must have
32         --          pcurves on <F>. 
33     is static;
34     
35     AddConstEdge  (me : in out; E : Edge from TopoDS)
36         ---Purpose: Add <E> as unique edge in the result.
37     is static;
38
39     AddSectionEdge  (me : in out; E : Edge from TopoDS)
40         ---Purpose: Add <E> as double edge in the result.
41     is static;
42
43     Perform(me : in out)
44         ---Purpose: Make loops.
45     is static;
46     
47     NewWires (me)       
48         ---Purpose: Returns the list of wires performed. 
49         --          can be an empty list.
50         ---C++: return const &
51     returns ListOfShape from TopTools;
52         
53     WiresToFaces (me : in out; EdgeImage : Image      from BRepAlgo)
54         ---Purpose:  Build faces from the wires result.
55         --           <EdgeImage> serves to  find  original edge by new
56         --           one.
57     is static;
58     
59     NewFaces (me)
60         ---Purpose: Returns the list of faces.
61         ---Warning: The method <WiresToFaces> as to be called before.
62         --          can be an empty list.
63         ---C++: return const &
64     returns ListOfShape from TopTools;
65
66     
67 fields
68
69     myFace       : Face        from TopoDS;
70     myFaceOri    : Orientation from TopAbs;
71     myConstEdges : ListOfShape from TopTools;
72     myNewWires   : ListOfShape from TopTools;
73     myNewFaces   : ListOfShape from TopTools;
74
75      -- internal wires do not contain constant edges
76     myInternalWL : ListOfShape from TopTools;
77     
78     mySectionEdges : MapOfShape from TopTools;
79     
80 end Loop2d;