Salome HOME
7c9eebefe121c3290cb12e00fd629e3a9bf17893
[modules/geom.git] / src / PARTITION / Partition_Loop.cdl
1 -- File   :     Partition_Loop.cdl
2 -- Created:     Thu Aug 02 16:07:39 2001
3 -- Author :     Benedicte MARTIN
4 --              
5 ---Copyright:    Matra Datavision 2001
6
7
8 class Loop from Partition
9
10         ---Purpose: Builds the loops from a set of edges on a face.
11
12 uses
13
14     Face                      from TopoDS,
15     Edge                      from TopoDS,
16     ListOfShape               from TopTools,
17     DataMapOfShapeListOfShape from TopTools
18
19 is
20
21     Create;
22     
23     Init (me : in out; F : Face from TopoDS)
24         ---Purpose: Init with <F> the set of edges must have
25         --          pcurves on <F>. 
26     is static;
27     
28     AddEdge (me : in out; E  : in out Edge from TopoDS;
29                           LV : ListOfShape from TopTools)
30         ---Purpose: Add E with <LV>. <E> will be copied and trim 
31         --          by vertices in <LV>.
32     is static;
33     
34     AddConstEdge  (me : in out; E : Edge from TopoDS)
35         ---Purpose: Add <E> as const edge, E can be in the result.
36     is static;
37
38     Perform(me : in out)
39         ---Purpose: Make loops.
40     is static;
41     
42     NewWires (me)       
43         ---Purpose: Returns the list of wires performed. 
44         --          can be an empty list.
45         ---C++: return const &
46     returns ListOfShape from TopTools;
47         
48     WiresToFaces (me : in out)
49         ---Purpose:  Build faces from the wires result.
50     is static;
51     
52     NewFaces (me)
53         ---Purpose: Returns the list of faces.
54         ---Warning: The method <WiresToFaces> as to be called before.
55         --          can be an empty list.
56         ---C++: return const &
57     returns ListOfShape from TopTools;
58
59     
60 fields
61
62     myFace       : Face                      from TopoDS;
63     myConstEdges : ListOfShape               from TopTools;
64     myNewWires   : ListOfShape               from TopTools;
65     myNewFaces   : ListOfShape               from TopTools;
66          
67 end Loop;