7fd59977 |
1 | -- File: TopOpeBRepBuild_PaveSet.cdl |
2 | -- Created: Tue Jun 15 20:02:14 1993 |
3 | -- Author: Jean Yves LEBEY |
4 | -- <jyl@zerox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | class PaveSet from TopOpeBRepBuild |
8 | inherits LoopSet from TopOpeBRepBuild |
9 | |
10 | ---Purpose: |
11 | -- class providing an exploration of a set of vertices to build edges. |
12 | -- It is similar to LoopSet from TopOpeBRepBuild where Loop is Pave. |
13 | |
14 | uses |
15 | |
16 | Shape from TopoDS, |
17 | Edge from TopoDS, |
18 | Loop from TopOpeBRepBuild, |
19 | Pave from TopOpeBRepBuild, |
20 | ListOfPave from TopOpeBRepBuild, |
21 | ListIteratorOfListOfPave from TopOpeBRepBuild |
22 | |
23 | is |
24 | |
25 | Create(E : Shape from TopoDS) returns PaveSet from TopOpeBRepBuild; |
26 | ---Purpose: Create a Pave set on edge <E>. It contains <E> vertices. |
27 | |
28 | RemovePV(me:in out; B : Boolean); -- particular case B = T/F : try/don't try |
29 | -- to remove Pave in Prepare() (T by default) |
30 | |
31 | Append(me : in out; PV : Pave from TopOpeBRepBuild) is static; |
32 | ---Purpose: Add <PV> in the Pave set. |
33 | |
34 | -- === start signature LoopSet |
35 | InitLoop(me : in out) is redefined; |
36 | MoreLoop(me) returns Boolean is redefined; |
37 | NextLoop(me : in out) is redefined; |
38 | Loop(me) returns Loop from TopOpeBRepBuild is redefined; |
39 | ---C++: return const & |
40 | -- === end signature LoopSet |
41 | |
42 | Edge(me) returns Edge from TopoDS is static; |
43 | ---C++: return const & |
44 | |
45 | HasEqualParameters(me : in out) returns Boolean is static; |
46 | EqualParameters(me) returns Real is static; |
47 | ClosedVertices(me : in out) returns Boolean is static; |
48 | |
49 | Prepare(me : in out) is static private; |
50 | SortPave(myclass; Lin:ListOfPave; Lout:out ListOfPave); |
51 | |
52 | fields |
53 | |
54 | myEdge : Edge from TopoDS; |
55 | myVertices : ListOfPave from TopOpeBRepBuild; |
56 | myVerticesIt : ListIteratorOfListOfPave from TopOpeBRepBuild; |
57 | myEdgeVertexIndex : Integer from Standard; |
58 | myEdgeVertexCount : Integer from Standard; |
59 | |
60 | myHasEqualParameters : Boolean from Standard; |
61 | myEqualParameters : Real from Standard; |
62 | myClosed : Boolean from Standard; |
63 | myPrepareDone : Boolean from Standard; |
64 | myRemovePV : Boolean; |
65 | |
66 | end PaveSet from TopOpeBRepBuild; |