35d950efef41c99b6398db262fad7c9d6a5d53e3
[occt.git] / src / IntPatch / IntPatch_ImpImpIntersection.lxx
1 // Created on: 1992-05-07
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <StdFail_NotDone.hxx>
18 #include <Standard_DomainError.hxx>
19 #include <IntPatch_Line.hxx>
20
21 inline Standard_Boolean IntPatch_ImpImpIntersection::IsDone () const
22 {
23   return done;
24 }
25
26 inline Standard_Boolean IntPatch_ImpImpIntersection::IsEmpty () const
27 {
28   if (!done) {StdFail_NotDone::Raise();}
29   return empt;
30 }
31
32 inline Standard_Boolean IntPatch_ImpImpIntersection::TangentFaces () const
33 {
34   if (!done) {StdFail_NotDone::Raise();}
35   return tgte;
36 }
37
38 inline Standard_Boolean IntPatch_ImpImpIntersection::OppositeFaces () const
39 {
40   if (!done) {StdFail_NotDone::Raise();}
41   if (!tgte) {Standard_DomainError::Raise();}
42   return oppo;
43 }
44
45 inline Standard_Integer IntPatch_ImpImpIntersection::NbPnts () const
46 {
47   if (!done) {StdFail_NotDone::Raise();}
48   return spnt.Length();
49 }
50
51 inline const IntPatch_Point& IntPatch_ImpImpIntersection::Point (const Standard_Integer Index) const
52 {
53   if (!done) {StdFail_NotDone::Raise();}
54   return spnt(Index);
55 }
56
57 inline Standard_Integer IntPatch_ImpImpIntersection::NbLines () const
58 {
59   if (!done) {StdFail_NotDone::Raise();}
60   return slin.Length();
61 }
62
63 inline const Handle(IntPatch_Line)& IntPatch_ImpImpIntersection::Line (const Standard_Integer Index) const
64 {
65   if (!done) {StdFail_NotDone::Raise();}
66   return slin(Index);
67 }