Integration of OCCT 6.5.0 from SVN
[occt.git] / src / ShapeAnalysis / ShapeAnalysis_Wire.lxx
CommitLineData
7fd59977 1//:pdn 05.01.99: renaming method ...Little to ...Small
2#include <ShapeExtend.hxx>
3#include <ShapeExtend_WireData.hxx>
4
5
6//=======================================================================
7//function : IsLoaded
8//purpose :
9//=======================================================================
10
11inline Standard_Boolean ShapeAnalysis_Wire::IsLoaded() const
12{
13 return ! myWire.IsNull() && myWire->NbEdges() >0;
14}
15
16
17//=======================================================================
18//function : IsReady
19//purpose :
20//=======================================================================
21
22inline Standard_Boolean ShapeAnalysis_Wire::IsReady() const
23{
24 return IsLoaded() && !myFace.IsNull();
25}
26
27
28//=======================================================================
29//function : Precision
30//purpose :
31//=======================================================================
32
33inline Standard_Real ShapeAnalysis_Wire::Precision() const
34{
35 return myPrecision;
36}
37
38
39//=======================================================================
40//function : WireData
41//purpose :
42//=======================================================================
43
44inline const Handle(ShapeExtend_WireData)& ShapeAnalysis_Wire::WireData() const
45{
46 return myWire;
47}
48
49
50//=======================================================================
51//function : NbEdges
52//purpose :
53//=======================================================================
54
55inline Standard_Integer ShapeAnalysis_Wire::NbEdges() const
56{
57 return myWire.IsNull() ? 0 : myWire->NbEdges();
58}
59
60
61//=======================================================================
62//function : Face
63//purpose :
64//=======================================================================
65
66inline const TopoDS_Face& ShapeAnalysis_Wire::Face() const
67{
68 return myFace;
69}
70
71
72//=======================================================================
73//function : Surface
74//purpose :
75//=======================================================================
76
77inline const Handle(ShapeAnalysis_Surface)& ShapeAnalysis_Wire::Surface() const
78{
79 return mySurf;
80}
81
82
83//=======================================================================
84//function : StatusOrder
85//purpose :
86//=======================================================================
87
88inline Standard_Boolean ShapeAnalysis_Wire::StatusOrder (const ShapeExtend_Status Status) const
89{
90 return ShapeExtend::DecodeStatus ( myStatusOrder, Status );
91}
92
93
94//=======================================================================
95//function : StatusConnected
96//purpose :
97//=======================================================================
98
99inline Standard_Boolean ShapeAnalysis_Wire::StatusConnected (const ShapeExtend_Status Status) const
100{
101 return ShapeExtend::DecodeStatus ( myStatusConnected, Status );
102}
103
104
105//=======================================================================
106//function : StatusEdgeCurves
107//purpose :
108//=======================================================================
109
110inline Standard_Boolean ShapeAnalysis_Wire::StatusEdgeCurves (const ShapeExtend_Status Status) const
111{
112 return ShapeExtend::DecodeStatus ( myStatusEdgeCurves, Status );
113}
114
115
116//=======================================================================
117//function : StatusDegenerated
118//purpose :
119//=======================================================================
120
121inline Standard_Boolean ShapeAnalysis_Wire::StatusDegenerated (const ShapeExtend_Status Status) const
122{
123 return ShapeExtend::DecodeStatus ( myStatusDegenerated, Status );
124}
125
126
127//=======================================================================
128//function : StatusClosed
129//purpose :
130//=======================================================================
131
132inline Standard_Boolean ShapeAnalysis_Wire::StatusClosed (const ShapeExtend_Status Status) const
133{
134 return ShapeExtend::DecodeStatus ( myStatusClosed, Status );
135}
136
137
138//=======================================================================
139//function : StatusSmall
140//purpose :
141//=======================================================================
142
143inline Standard_Boolean ShapeAnalysis_Wire::StatusSmall (const ShapeExtend_Status Status) const
144{
145 return ShapeExtend::DecodeStatus ( myStatusSmall, Status );
146}
147
148
149//=======================================================================
150//function : StatusSelfIntersection
151//purpose :
152//=======================================================================
153
154inline Standard_Boolean ShapeAnalysis_Wire::StatusSelfIntersection (const ShapeExtend_Status Status) const
155{
156 return ShapeExtend::DecodeStatus ( myStatusSelfIntersection, Status );
157}
158
159
160//=======================================================================
161//function : StatusLacking
162//purpose :
163//=======================================================================
164
165inline Standard_Boolean ShapeAnalysis_Wire::StatusLacking (const ShapeExtend_Status Status) const
166{
167 return ShapeExtend::DecodeStatus ( myStatusLacking, Status );
168}
169
170
171//=======================================================================
172//function : StatusGaps3d
173//purpose :
174//=======================================================================
175
176inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps3d(const ShapeExtend_Status Status) const
177{
178 return ShapeExtend::DecodeStatus ( myStatusGaps3d, Status );
179}
180
181
182//=======================================================================
183//function : StatusGaps2d
184//purpose :
185//=======================================================================
186
187inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps2d(const ShapeExtend_Status Status) const
188{
189 return ShapeExtend::DecodeStatus ( myStatusGaps2d, Status );
190}
191
192
193//=======================================================================
194//function : StatusCurveGaps
195//purpose :
196//=======================================================================
197
198inline Standard_Boolean ShapeAnalysis_Wire::StatusCurveGaps(const ShapeExtend_Status Status) const
199{
200 return ShapeExtend::DecodeStatus ( myStatusCurveGaps, Status );
201}
202
203//=======================================================================
204//function : StatusLoop
205//purpose :
206//=======================================================================
207
208inline Standard_Boolean ShapeAnalysis_Wire::StatusLoop(const ShapeExtend_Status Status) const
209{
210 return ShapeExtend::DecodeStatus ( myStatusLoop, Status );
211}
212
213//=======================================================================
214//function : Status
215//purpose :
216//=======================================================================
217
218inline Standard_Boolean ShapeAnalysis_Wire::LastCheckStatus (const ShapeExtend_Status Status) const
219{
220 return ShapeExtend::DecodeStatus ( myStatus, Status );
221}
222
223
224//=======================================================================
225//function : MinDistance3d
226//purpose :
227//=======================================================================
228
229inline Standard_Real ShapeAnalysis_Wire::MinDistance3d() const
230{
231 return myMin3d;
232}
233
234
235//=======================================================================
236//function : MinDistance2d
237//purpose :
238//=======================================================================
239
240inline Standard_Real ShapeAnalysis_Wire::MinDistance2d() const
241{
242 return myMin2d;
243}
244
245
246//=======================================================================
247//function : MaxDistance3d
248//purpose :
249//=======================================================================
250
251inline Standard_Real ShapeAnalysis_Wire::MaxDistance3d() const
252{
253 return myMax3d;
254}
255
256
257//=======================================================================
258//function : MaxDistance2d
259//purpose :
260//=======================================================================
261
262inline Standard_Real ShapeAnalysis_Wire::MaxDistance2d() const
263{
264 return myMax2d;
265}