blob: 89381dd2803adf24cea1eb6179cfeac5465df10d (
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
|
#include <StdFail_NotDone.hxx>
#include <StdFail_UndefinedDerivative.hxx>
#include <Standard_DomainError.hxx>
inline Standard_Boolean IntImp_Int2S::IsDone()const { return done;}
inline Standard_Boolean IntImp_Int2S::IsEmpty() const
{
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsEmpty() ");
return empty;
}
inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
{
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Point() ");
if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Point() ");
return pint;
}
inline Standard_Boolean IntImp_Int2S::IsTangent () const {
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsTangent () ");
if (empty) Standard_DomainError::Raise(" IntImp_Int2S::IsTangent () ");
return tangent;
}
inline const gp_Dir& IntImp_Int2S::Direction () const {
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Direction () ");
if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Direction () ");
if (tangent) StdFail_UndefinedDerivative::Raise
(" IntImp_Int2S::Direction () ");
return d3d;
}
inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1 () const {
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS1 () ");
if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS1 () ");
if (tangent) StdFail_UndefinedDerivative::Raise
(" IntImp_Int2S::DirectionOnS1 () ");
return d2d1;
}
inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2 () const {
if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS2 () ");
if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS2 () ");
if (tangent) StdFail_UndefinedDerivative::Raise
(" IntImp_Int2S::DirectionOnS2 () ");
return d2d2;
}
inline IntImp_TheFunction& IntImp_Int2S::Function() {
return myZerParFunc;
}
|