blob: 889c75db3d65c83fe49ed338323245c9a704534d (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// File: HLRBRep_EdgeInterferenceTool.lxx
// Created: Thu Apr 17 21:17:06 1997
// Author: Christophe MARION
// <cma@partox.paris1.matra-dtv.fr>
#include <HLRAlgo_Interference.hxx>
//=======================================================================
//function : InitVertices
//purpose :
//=======================================================================
inline void HLRBRep_EdgeInterferenceTool::InitVertices()
{ cur = 0; }
//=======================================================================
//function : MoreVertices
//purpose :
//=======================================================================
inline Standard_Boolean
HLRBRep_EdgeInterferenceTool::MoreVertices() const
{ return cur < 2; }
//=======================================================================
//function : NextVertex
//purpose :
//=======================================================================
inline void HLRBRep_EdgeInterferenceTool::NextVertex()
{ cur++; }
//=======================================================================
//function : CurrentVertex
//purpose :
//=======================================================================
inline const HLRAlgo_Intersection&
HLRBRep_EdgeInterferenceTool::CurrentVertex
() const
{ return inter[cur]; }
//=======================================================================
//function : CurrentOrientation
//purpose :
//=======================================================================
inline TopAbs_Orientation
HLRBRep_EdgeInterferenceTool::CurrentOrientation
() const
{
if (cur == 0) return TopAbs_FORWARD;
else return TopAbs_REVERSED;
}
//=======================================================================
//function : CurrentParameter
//purpose :
//=======================================================================
inline Standard_Real
HLRBRep_EdgeInterferenceTool::CurrentParameter() const
{ return inter[cur].Parameter(); }
//=======================================================================
//function : IsPeriodic
//purpose :
//=======================================================================
inline Standard_Boolean
HLRBRep_EdgeInterferenceTool::IsPeriodic() const
{ return Standard_False; }
//=======================================================================
//function : ParameterOfInterference
//purpose :
//=======================================================================
inline Standard_Real
HLRBRep_EdgeInterferenceTool::ParameterOfInterference
(const HLRAlgo_Interference& I) const
{ return I.Intersection().Parameter(); }
|