0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / BRepAlgo / BRepAlgo_Loop.cdl
CommitLineData
b311480e 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
5--
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.
10--
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.
13--
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.
20
7fd59977 21
22
23class Loop from BRepAlgo
24
25 ---Purpose: Builds the loops from a set of edges on a face.
26
27uses
28
29 Face from TopoDS,
30 Edge from TopoDS,
31 ListOfShape from TopTools,
32 DataMapOfShapeListOfShape from TopTools,
33 DataMapOfShapeShape from TopTools
34
35is
36
37 Create;
38
39 Init (me : in out; F : Face from TopoDS)
40 ---Purpose: Init with <F> the set of edges must have
41 -- pcurves on <F>.
42 is static;
43
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>.
48 is static;
49
50 AddConstEdge (me : in out; E : Edge from TopoDS)
51 ---Purpose: Add <E> as const edge, E can be in the result.
52 is static;
53
54 AddConstEdges (me : in out; LE : ListOfShape from TopTools)
55 ---Purpose: Add <LE> as a set of const edges.
56 is static;
57
58 Perform(me : in out)
59 ---Purpose: Make loops.
60 is static;
61
62 CutEdge(me;
63 E : Edge from TopoDS;
64 VonE : ListOfShape from TopTools;
65 NE : in out ListOfShape from TopTools)
66 ---Purpose: Cut the edge <E> in several edges <NE> on the
67 -- vertices<VonE>.
68 is static;
69
70 NewWires (me)
71 ---Purpose: Returns the list of wires performed.
72 -- can be an empty list.
73 ---C++: return const &
74 returns ListOfShape from TopTools;
75
76 WiresToFaces (me : in out)
77 ---Purpose: Build faces from the wires result.
78 is static;
79
80 NewFaces (me)
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;
86
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;
92
93 GetVerticesForSubstitute (me; VerVerMap: out DataMapOfShapeShape from TopTools);
94 ---Purpose: Returns the datamap of vertices with their substitutes.
95
96 VerticesForSubstitute (me : in out; VerVerMap: in out DataMapOfShapeShape from TopTools);
97 ---Purpose:
98
99fields
100
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;
107
108 myVerticesForSubstitute : DataMapOfShapeShape from TopTools;
109
110end Loop;