1 -- Created on: 1995-11-10
2 -- Created by: Yves FRICAUD
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 class Loop from BRepAlgo
25 ---Purpose: Builds the loops from a set of edges on a face.
31 ListOfShape from TopTools,
32 DataMapOfShapeListOfShape from TopTools,
33 DataMapOfShapeShape from TopTools
39 Init (me : in out; F : Face from TopoDS)
40 ---Purpose: Init with <F> the set of edges must have
44 AddEdge (me : in out; E : in out Edge from TopoDS;
45 LV : ListOfShape from TopTools)
46 ---Purpose: Add E with <LV>. <E> will be copied and trim
47 -- by vertices in <LV>.
50 AddConstEdge (me : in out; E : Edge from TopoDS)
51 ---Purpose: Add <E> as const edge, E can be in the result.
54 AddConstEdges (me : in out; LE : ListOfShape from TopTools)
55 ---Purpose: Add <LE> as a set of const edges.
59 ---Purpose: Make loops.
64 VonE : ListOfShape from TopTools;
65 NE : in out ListOfShape from TopTools)
66 ---Purpose: Cut the edge <E> in several edges <NE> on the
71 ---Purpose: Returns the list of wires performed.
72 -- can be an empty list.
73 ---C++: return const &
74 returns ListOfShape from TopTools;
76 WiresToFaces (me : in out)
77 ---Purpose: Build faces from the wires result.
81 ---Purpose: Returns the list of faces.
82 -- Warning: The method <WiresToFaces> as to be called before.
83 -- can be an empty list.
84 ---C++: return const &
85 returns ListOfShape from TopTools;
87 NewEdges (me ; E : Edge from TopoDS)
88 ---Purpose: Returns the list of new edges built from an edge <E>
89 -- it can be an empty list.
90 ---C++: return const &
91 returns ListOfShape from TopTools;
93 GetVerticesForSubstitute (me; VerVerMap: out DataMapOfShapeShape from TopTools);
94 ---Purpose: Returns the datamap of vertices with their substitutes.
96 VerticesForSubstitute (me : in out; VerVerMap: in out DataMapOfShapeShape from TopTools);
101 myFace : Face from TopoDS;
102 myConstEdges : ListOfShape from TopTools;
103 myVerOnEdges : DataMapOfShapeListOfShape from TopTools;
104 myNewWires : ListOfShape from TopTools;
105 myNewFaces : ListOfShape from TopTools;
106 myNewEdges : DataMapOfShapeListOfShape from TopTools;
108 myVerticesForSubstitute : DataMapOfShapeShape from TopTools;