1 -- File : Partition_Loop2d.cdl
2 -- Created: Thu Aug 02 16:07:39 2001
3 -- Author : Benedicte MARTIN
5 ---Copyright: OPEN CASCADE 2001
8 class Loop2d from Partition
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
17 Orientation from TopAbs,
18 Boolean from Standard,
23 ListOfShape from TopTools,
24 DataMapOfShapeListOfShape from TopTools,
25 MapOfShape from TopTools
30 Init (me : in out; F : Face from TopoDS)
31 ---Purpose: Init with <F> the set of edges must have
35 AddConstEdge (me : in out; E : Edge from TopoDS)
36 ---Purpose: Add <E> as unique edge in the result.
39 AddSectionEdge (me : in out; E : Edge from TopoDS)
40 ---Purpose: Add <E> as double edge in the result.
44 ---Purpose: Make loops.
48 ---Purpose: Returns the list of wires performed.
49 -- can be an empty list.
50 ---C++: return const &
51 returns ListOfShape from TopTools;
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
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;
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;
75 -- internal wires do not contain constant edges
76 myInternalWL : ListOfShape from TopTools;
78 mySectionEdges : MapOfShape from TopTools;