1 -- Created on: 1995-11-10
2 -- Created by: Yves FRICAUD
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Loop from BRepAlgo
19 ---Purpose: Builds the loops from a set of edges on a face.
25 ListOfShape from TopTools,
26 DataMapOfShapeListOfShape from TopTools,
27 DataMapOfShapeShape from TopTools
33 Init (me : in out; F : Face from TopoDS)
34 ---Purpose: Init with <F> the set of edges must have
38 AddEdge (me : in out; E : in out Edge from TopoDS;
39 LV : ListOfShape from TopTools)
40 ---Purpose: Add E with <LV>. <E> will be copied and trim
41 -- by vertices in <LV>.
44 AddConstEdge (me : in out; E : Edge from TopoDS)
45 ---Purpose: Add <E> as const edge, E can be in the result.
48 AddConstEdges (me : in out; LE : ListOfShape from TopTools)
49 ---Purpose: Add <LE> as a set of const edges.
53 ---Purpose: Make loops.
58 VonE : ListOfShape from TopTools;
59 NE : in out ListOfShape from TopTools)
60 ---Purpose: Cut the edge <E> in several edges <NE> on the
65 ---Purpose: Returns the list of wires performed.
66 -- can be an empty list.
67 ---C++: return const &
68 returns ListOfShape from TopTools;
70 WiresToFaces (me : in out)
71 ---Purpose: Build faces from the wires result.
75 ---Purpose: Returns the list of faces.
76 -- Warning: The method <WiresToFaces> as to be called before.
77 -- can be an empty list.
78 ---C++: return const &
79 returns ListOfShape from TopTools;
81 NewEdges (me ; E : Edge from TopoDS)
82 ---Purpose: Returns the list of new edges built from an edge <E>
83 -- it can be an empty list.
84 ---C++: return const &
85 returns ListOfShape from TopTools;
87 GetVerticesForSubstitute (me; VerVerMap: out DataMapOfShapeShape from TopTools);
88 ---Purpose: Returns the datamap of vertices with their substitutes.
90 VerticesForSubstitute (me : in out; VerVerMap: in out DataMapOfShapeShape from TopTools);
95 myFace : Face from TopoDS;
96 myConstEdges : ListOfShape from TopTools;
97 myEdges : ListOfShape from TopTools;
98 myVerOnEdges : DataMapOfShapeListOfShape from TopTools;
99 myNewWires : ListOfShape from TopTools;
100 myNewFaces : ListOfShape from TopTools;
101 myCutEdges : DataMapOfShapeListOfShape from TopTools;
103 myVerticesForSubstitute : DataMapOfShapeShape from TopTools;