7fd59977 |
1 | // File: IntPatch_ImpPrmIntersection.lxx |
2 | // Created: Thu May 7 08:47:45 1992 |
3 | // Author: Jacques GOUSSARD |
4 | // Copyright: Matra Datavision 1992 |
5 | |
6 | #include <StdFail_NotDone.hxx> |
7 | #include <IntPatch_Line.hxx> |
8 | |
9 | inline Standard_Boolean IntPatch_ImpPrmIntersection::IsDone () const |
10 | { |
11 | return done; |
12 | } |
13 | |
14 | inline Standard_Boolean IntPatch_ImpPrmIntersection::IsEmpty () const |
15 | { |
16 | if (!done) {StdFail_NotDone::Raise();} |
17 | return empt; |
18 | } |
19 | |
20 | inline Standard_Integer IntPatch_ImpPrmIntersection::NbPnts () const |
21 | { |
22 | if (!done) {StdFail_NotDone::Raise();} |
23 | return spnt.Length(); |
24 | } |
25 | |
26 | inline const IntPatch_Point& IntPatch_ImpPrmIntersection::Point (const Standard_Integer Index) const |
27 | { |
28 | if (!done) {StdFail_NotDone::Raise();} |
29 | return spnt(Index); |
30 | } |
31 | |
32 | inline Standard_Integer IntPatch_ImpPrmIntersection::NbLines () const |
33 | { |
34 | if (!done) {StdFail_NotDone::Raise();} |
35 | return slin.Length(); |
36 | } |
37 | |
38 | inline const Handle(IntPatch_Line)& IntPatch_ImpPrmIntersection::Line (const Standard_Integer Index) const |
39 | { |
40 | if (!done) {StdFail_NotDone::Raise();} |
41 | return slin(Index); |
42 | } |