Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Contap / Contap_ContourGen.lxx
1 #include <StdFail_NotDone.hxx>
2
3 inline Standard_Boolean Contap_ContourGen::IsDone () const
4 {
5   return done;
6 }
7
8 inline Standard_Boolean Contap_ContourGen::IsEmpty () const
9 {
10   return NbLines()==0;
11 }
12
13 inline Standard_Integer Contap_ContourGen::NbLines () const
14 {
15   if (!done) {StdFail_NotDone::Raise();}
16   return slin.Length();
17 }
18
19 inline const Contap_TheLine & 
20 Contap_ContourGen::Line (const Standard_Integer Index) const
21 {
22   if (!done) {StdFail_NotDone::Raise();}
23   return slin(Index);
24 }
25
26 inline Contap_TheSurfFunction & 
27 Contap_ContourGen::SurfaceFunction ()
28 {
29   if (!done) {StdFail_NotDone::Raise();}
30   return mySFunc;
31 }
32