blob: 7281f026cd95ff73380f4375d564b29e1a83fa17 (
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
|
#include <StdFail_NotDone.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_OutOfRange.hxx>
inline Standard_Boolean IntAna_IntConicQuad::IsDone() const {
return(done);
}
inline Standard_Boolean IntAna_IntConicQuad::IsInQuadric() const {
if (!done) {StdFail_NotDone::Raise();}
return(inquadric);
}
inline Standard_Boolean IntAna_IntConicQuad::IsParallel() const {
if(!done) {StdFail_NotDone::Raise();}
return(parallel);
}
inline Standard_Integer IntAna_IntConicQuad::NbPoints() const {
if(!done) {StdFail_NotDone::Raise();}
if (parallel || inquadric) {Standard_DomainError::Raise();}
return(nbpts);
}
inline const gp_Pnt& IntAna_IntConicQuad::Point
(const Standard_Integer i) const {
if(!done) {StdFail_NotDone::Raise();}
if (parallel || inquadric) {Standard_DomainError::Raise();}
if((i>nbpts)||(i<=0)) {Standard_OutOfRange::Raise();}
return(pnts[i-1]);
}
inline Standard_Real IntAna_IntConicQuad::ParamOnConic
(const Standard_Integer i) const {
if(!done) {StdFail_NotDone::Raise();}
if (parallel || inquadric) {Standard_DomainError::Raise();}
if((i>nbpts)||(i<=0)) {Standard_OutOfRange::Raise();}
return(paramonc[i-1]);
}
|