0022623: Use of uninitialized variables in HLRBRep_Curve::UpdateMinMax in debug mode
[occt.git] / src / HLRBRep / HLRBRep_EdgeInterferenceTool.lxx
CommitLineData
733a0e55
S
1// File: HLRBRep_EdgeInterferenceTool.lxx
2// Created: Thu Apr 17 21:17:06 1997
3// Author: Christophe MARION
4// Copyright: OPEN CASCADE 2000
7fd59977 5
6#include <HLRAlgo_Interference.hxx>
7
8//=======================================================================
9//function : InitVertices
10//purpose :
11//=======================================================================
12
13inline void HLRBRep_EdgeInterferenceTool::InitVertices()
14{ cur = 0; }
15
16//=======================================================================
17//function : MoreVertices
18//purpose :
19//=======================================================================
20
21inline Standard_Boolean
22HLRBRep_EdgeInterferenceTool::MoreVertices() const
23{ return cur < 2; }
24
25//=======================================================================
26//function : NextVertex
27//purpose :
28//=======================================================================
29
30inline void HLRBRep_EdgeInterferenceTool::NextVertex()
31{ cur++; }
32
33//=======================================================================
34//function : CurrentVertex
35//purpose :
36//=======================================================================
37
38inline const HLRAlgo_Intersection&
39HLRBRep_EdgeInterferenceTool::CurrentVertex
40 () const
41{ return inter[cur]; }
42
43//=======================================================================
44//function : CurrentOrientation
45//purpose :
46//=======================================================================
47
48inline TopAbs_Orientation
49HLRBRep_EdgeInterferenceTool::CurrentOrientation
50 () const
51{
52 if (cur == 0) return TopAbs_FORWARD;
53 else return TopAbs_REVERSED;
54}
55
56//=======================================================================
57//function : CurrentParameter
58//purpose :
59//=======================================================================
60
61inline Standard_Real
62HLRBRep_EdgeInterferenceTool::CurrentParameter() const
63{ return inter[cur].Parameter(); }
64
65//=======================================================================
66//function : IsPeriodic
67//purpose :
68//=======================================================================
69
70inline Standard_Boolean
71HLRBRep_EdgeInterferenceTool::IsPeriodic() const
72{ return Standard_False; }
73
74//=======================================================================
75//function : ParameterOfInterference
76//purpose :
77//=======================================================================
78
79inline Standard_Real
80HLRBRep_EdgeInterferenceTool::ParameterOfInterference
81 (const HLRAlgo_Interference& I) const
82{ return I.Intersection().Parameter(); }