blob: 27db7e00708a1f595439587cd34866eac21a4980 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#include <StdFail_NotDone.hxx>
#include IntWalk_TheIWLine_hxx
inline void IntWalk_IWalking::SetTolerance(const Standard_Real Epsilon,
const Standard_Real Deflection,
const Standard_Real Increment )
{
fleche = Deflection;
pas = Increment;
epsilon = Epsilon*Epsilon;
}
inline Standard_Boolean IntWalk_IWalking::IsDone() const
{
return done;
}
inline Standard_Integer IntWalk_IWalking::NbLines() const
{
if(!done) StdFail_NotDone::Raise();
return lines.Length();
}
inline const Handle(IntWalk_TheIWLine)& IntWalk_IWalking::Value
(const Standard_Integer Index) const
{
if(!done) StdFail_NotDone::Raise();
return lines.Value(Index);
}
inline Standard_Integer IntWalk_IWalking::NbSinglePnts() const
{
if(!done) StdFail_NotDone::Raise();
return seqSingle.Length();
}
inline const ThePointOfPath& IntWalk_IWalking::SinglePnt
(const Standard_Integer Index) const
{
if(!done) StdFail_NotDone::Raise();
return seqSingle.Value(Index);
}
|