summaryrefslogtreecommitdiff
path: root/inc/Contap_ContourGen.lxx
blob: de20378ba5db1be79fdf0c93a0ba18dd95017816 (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
#include <StdFail_NotDone.hxx>

inline Standard_Boolean Contap_ContourGen::IsDone () const
{
  return done;
}

inline Standard_Boolean Contap_ContourGen::IsEmpty () const
{
  return NbLines()==0;
}

inline Standard_Integer Contap_ContourGen::NbLines () const
{
  if (!done) {StdFail_NotDone::Raise();}
  return slin.Length();
}

inline const Contap_TheLine & 
Contap_ContourGen::Line (const Standard_Integer Index) const
{
  if (!done) {StdFail_NotDone::Raise();}
  return slin(Index);
}

inline Contap_TheSurfFunction & 
Contap_ContourGen::SurfaceFunction ()
{
  if (!done) {StdFail_NotDone::Raise();}
  return mySFunc;
}