b311480e |
1 | // Created on: 1995-02-07 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #include <HLRTopoBRep_FaceData.hxx> |
18 | #include <TopoDS.hxx> |
19 | #include <TopoDS_Shape.hxx> |
20 | #include <TopoDS_Face.hxx> |
21 | #include <TopoDS_Edge.hxx> |
22 | #include <TopoDS_Vertex.hxx> |
23 | |
24 | //======================================================================= |
25 | //function : EdgeSplE |
26 | //purpose : |
27 | //======================================================================= |
28 | |
29 | inline const TopTools_ListOfShape & |
30 | HLRTopoBRep_Data::EdgeSplE (const TopoDS_Edge& E) const |
31 | { |
32 | return mySplE(E); |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : FaceIntL |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline const TopTools_ListOfShape & |
41 | HLRTopoBRep_Data::FaceIntL (const TopoDS_Face& F) const |
42 | { |
43 | return myData(F).FaceIntL(); |
44 | } |
45 | |
46 | //======================================================================= |
47 | //function : FaceOutL |
48 | //purpose : |
49 | //======================================================================= |
50 | |
51 | inline const TopTools_ListOfShape & |
52 | HLRTopoBRep_Data::FaceOutL (const TopoDS_Face& F) const |
53 | { |
54 | return myData(F).FaceOutL(); |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : FaceIsoL |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | inline const TopTools_ListOfShape & |
63 | HLRTopoBRep_Data::FaceIsoL (const TopoDS_Face& F) const |
64 | { |
65 | return myData(F).FaceIsoL(); |
66 | } |
67 | |
68 | //======================================================================= |
69 | //function : IsOutV |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | inline Standard_Boolean |
74 | HLRTopoBRep_Data::IsOutV (const TopoDS_Vertex& V) const |
75 | { |
76 | return myOutV.Contains(V); |
77 | } |
78 | |
79 | //======================================================================= |
80 | //function : IsIntV |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | inline Standard_Boolean |
85 | HLRTopoBRep_Data::IsIntV (const TopoDS_Vertex& V) const |
86 | { |
87 | return myIntV.Contains(V); |
88 | } |
89 | |
90 | //======================================================================= |
91 | //function : AddOutV |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | inline void HLRTopoBRep_Data::AddOutV (const TopoDS_Vertex& V) |
96 | { |
97 | myOutV.Add(V); |
98 | } |
99 | |
100 | //======================================================================= |
101 | //function : AddIntV |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | inline void HLRTopoBRep_Data::AddIntV (const TopoDS_Vertex& V) |
106 | { |
107 | myIntV.Add(V); |
108 | } |
109 | |
110 | //======================================================================= |
111 | //function : MoreEdge |
112 | //purpose : |
113 | //======================================================================= |
114 | |
115 | inline Standard_Boolean HLRTopoBRep_Data::MoreEdge () const |
116 | { |
117 | return myEIterator.More(); |
118 | } |
119 | |
120 | //======================================================================= |
121 | //function : Edge |
122 | //purpose : |
123 | //======================================================================= |
124 | |
125 | inline const TopoDS_Edge & HLRTopoBRep_Data::Edge () const |
126 | { |
127 | return TopoDS::Edge(myEIterator.Key()); |
128 | } |
129 | |
130 | //======================================================================= |
131 | //function : MoreVertex |
132 | //purpose : |
133 | //======================================================================= |
134 | |
135 | inline Standard_Boolean HLRTopoBRep_Data::MoreVertex () const |
136 | { |
137 | return myVIterator.More(); |
138 | } |
139 | |
140 | //======================================================================= |
141 | //function : NextVertex |
142 | //purpose : |
143 | //======================================================================= |
144 | |
145 | inline void HLRTopoBRep_Data::NextVertex () |
146 | { |
147 | myVIterator.Next(); |
148 | } |
149 | |