b311480e |
1 | -- Created on: 1993-06-15 |
2 | -- Created by: Jean Yves LEBEY |
3 | -- Copyright (c) 1993-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 | class PaveSet from TopOpeBRepBuild |
23 | inherits LoopSet from TopOpeBRepBuild |
24 | |
25 | ---Purpose: |
26 | -- class providing an exploration of a set of vertices to build edges. |
27 | -- It is similar to LoopSet from TopOpeBRepBuild where Loop is Pave. |
28 | |
29 | uses |
30 | |
31 | Shape from TopoDS, |
32 | Edge from TopoDS, |
33 | Loop from TopOpeBRepBuild, |
34 | Pave from TopOpeBRepBuild, |
35 | ListOfPave from TopOpeBRepBuild, |
36 | ListIteratorOfListOfPave from TopOpeBRepBuild |
37 | |
38 | is |
39 | |
40 | Create(E : Shape from TopoDS) returns PaveSet from TopOpeBRepBuild; |
41 | ---Purpose: Create a Pave set on edge <E>. It contains <E> vertices. |
42 | |
43 | RemovePV(me:in out; B : Boolean); -- particular case B = T/F : try/don't try |
44 | -- to remove Pave in Prepare() (T by default) |
45 | |
46 | Append(me : in out; PV : Pave from TopOpeBRepBuild) is static; |
47 | ---Purpose: Add <PV> in the Pave set. |
48 | |
49 | -- === start signature LoopSet |
50 | InitLoop(me : in out) is redefined; |
51 | MoreLoop(me) returns Boolean is redefined; |
52 | NextLoop(me : in out) is redefined; |
53 | Loop(me) returns Loop from TopOpeBRepBuild is redefined; |
54 | ---C++: return const & |
55 | -- === end signature LoopSet |
56 | |
57 | Edge(me) returns Edge from TopoDS is static; |
58 | ---C++: return const & |
59 | |
60 | HasEqualParameters(me : in out) returns Boolean is static; |
61 | EqualParameters(me) returns Real is static; |
62 | ClosedVertices(me : in out) returns Boolean is static; |
63 | |
64 | Prepare(me : in out) is static private; |
65 | SortPave(myclass; Lin:ListOfPave; Lout:out ListOfPave); |
66 | |
67 | fields |
68 | |
69 | myEdge : Edge from TopoDS; |
70 | myVertices : ListOfPave from TopOpeBRepBuild; |
71 | myVerticesIt : ListIteratorOfListOfPave from TopOpeBRepBuild; |
7fd59977 |
72 | |
73 | myHasEqualParameters : Boolean from Standard; |
74 | myEqualParameters : Real from Standard; |
75 | myClosed : Boolean from Standard; |
76 | myPrepareDone : Boolean from Standard; |
77 | myRemovePV : Boolean; |
78 | |
79 | end PaveSet from TopOpeBRepBuild; |