blob: e7ada110aec526d79d560597d79d2cc53ce2c16d (
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
|
#include <StdFail_NotDone.hxx>
#include <Standard_OutOfRange.hxx>
inline Standard_Boolean IntAna_IntLinTorus::IsDone () const {
return done;
}
inline Standard_Integer IntAna_IntLinTorus::NbPoints () const {
if (!done) {StdFail_NotDone::Raise();}
return nbpt;
}
inline const gp_Pnt& IntAna_IntLinTorus::Value
(const Standard_Integer Index) const {
if (!done) {StdFail_NotDone::Raise();}
if(Index<=0 || Index>nbpt) { Standard_OutOfRange::Raise();}
return thePoint[Index-1];
}
inline Standard_Real IntAna_IntLinTorus::ParamOnLine
(const Standard_Integer Index) const {
if (!done) {StdFail_NotDone::Raise();}
if(Index<=0 || Index>nbpt) { Standard_OutOfRange::Raise();}
return theParam[Index-1];
}
inline void IntAna_IntLinTorus::ParamOnTorus
(const Standard_Integer Index,
Standard_Real& FI, Standard_Real& THETA) const {
if (!done) {StdFail_NotDone::Raise();}
if(Index<=0 || Index>nbpt) { Standard_OutOfRange::Raise();}
FI=theFi[Index-1];
THETA=theTheta[Index-1];
}
|