summaryrefslogtreecommitdiff
path: root/inc/CPnts_UniformDeflection.lxx
blob: 94529ae754345334373a8d0ac5098cb6ed600968 (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
#include <StdFail_NotDone.hxx>
#include <Standard_OutOfRange.hxx>

//=======================================================================
//function : IsAllDone
//purpose  : 
//=======================================================================

inline Standard_Boolean CPnts_UniformDeflection::IsAllDone () const 
{ 
  return myDone;
}

//=======================================================================
//function : Next
//purpose  : 
//=======================================================================

inline void CPnts_UniformDeflection::Next()
{ 
  Standard_OutOfRange_Raise_if(myIPoint >= myNbPoints, "");
  myIPoint++;
}

//=======================================================================
//function : Value
//purpose  : 
//=======================================================================

inline Standard_Real CPnts_UniformDeflection::Value () const
{ 
  StdFail_NotDone_Raise_if(!myDone, "");
  return myParams[myIPoint + 1];
}
//=======================================================================
//function : Point
//purpose  : 
//=======================================================================

inline gp_Pnt  CPnts_UniformDeflection::Point () const
{ 
  StdFail_NotDone_Raise_if(!myDone, "");
  return myPoints[myIPoint + 1];
}