Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntPatch / IntPatch_ImpImpIntersection.lxx
1 // File:      IntPatch_ImpImpIntersection.lxx
2 // Created:   Thu May  7 08:47:45 1992
3 // Author:    Jacques GOUSSARD
4 // Copyright: OPEN CASCADE 1992
5
6 #include <StdFail_NotDone.hxx>
7 #include <Standard_DomainError.hxx>
8 #include <IntPatch_Line.hxx>
9
10 inline Standard_Boolean IntPatch_ImpImpIntersection::IsDone () const
11 {
12   return done;
13 }
14
15 inline Standard_Boolean IntPatch_ImpImpIntersection::IsEmpty () const
16 {
17   if (!done) {StdFail_NotDone::Raise();}
18   return empt;
19 }
20
21 inline Standard_Boolean IntPatch_ImpImpIntersection::TangentFaces () const
22 {
23   if (!done) {StdFail_NotDone::Raise();}
24   return tgte;
25 }
26
27 inline Standard_Boolean IntPatch_ImpImpIntersection::OppositeFaces () const
28 {
29   if (!done) {StdFail_NotDone::Raise();}
30   if (!tgte) {Standard_DomainError::Raise();}
31   return oppo;
32 }
33
34 inline Standard_Integer IntPatch_ImpImpIntersection::NbPnts () const
35 {
36   if (!done) {StdFail_NotDone::Raise();}
37   return spnt.Length();
38 }
39
40 inline const IntPatch_Point& IntPatch_ImpImpIntersection::Point (const Standard_Integer Index) const
41 {
42   if (!done) {StdFail_NotDone::Raise();}
43   return spnt(Index);
44 }
45
46 inline Standard_Integer IntPatch_ImpImpIntersection::NbLines () const
47 {
48   if (!done) {StdFail_NotDone::Raise();}
49   return slin.Length();
50 }
51
52 inline const Handle(IntPatch_Line)& IntPatch_ImpImpIntersection::Line (const Standard_Integer Index) const
53 {
54   if (!done) {StdFail_NotDone::Raise();}
55   return slin(Index);
56 }