1 // File: IntPatch_WLine.lxx
2 // Created: Mon May 27 13:18:45 1991
3 // Author: Isabelle GRIGNON
4 // Copyright: OPEN CASCADE 1991, 1992
6 #include <Standard_DomainError.hxx>
7 #include <IntSurf_LineOn2S.hxx>
8 #include <IntPatch_Point.hxx>
11 inline void IntPatch_WLine::AddVertex (const IntPatch_Point& Pnt)
16 inline void IntPatch_WLine::Replace (const Standard_Integer Index,
17 const IntPatch_Point& Pnt)
22 inline void IntPatch_WLine::SetFirstPoint (const Standard_Integer IndFirst)
28 inline void IntPatch_WLine::SetLastPoint (const Standard_Integer IndLast)
34 inline Standard_Integer IntPatch_WLine::NbPnts () const
36 return curv->NbPoints();
39 inline const IntSurf_PntOn2S& IntPatch_WLine::Point (const Standard_Integer Index) const
41 return curv->Value(Index);
44 inline Standard_Boolean IntPatch_WLine::HasFirstPoint () const
49 inline Standard_Boolean IntPatch_WLine::HasLastPoint () const
54 inline const IntPatch_Point& IntPatch_WLine::FirstPoint () const
56 if (!fipt) {Standard_DomainError::Raise();}
60 inline const IntPatch_Point& IntPatch_WLine::LastPoint () const
62 if (!lapt) {Standard_DomainError::Raise();}
66 inline const IntPatch_Point& IntPatch_WLine::FirstPoint (Standard_Integer& Indfirst) const
68 if (!fipt) {Standard_DomainError::Raise();}
73 inline const IntPatch_Point& IntPatch_WLine::LastPoint (Standard_Integer& Indlast) const
75 if (!lapt) {Standard_DomainError::Raise();}
80 inline Standard_Integer IntPatch_WLine::NbVertex () const
85 inline const IntPatch_Point& IntPatch_WLine::Vertex (const Standard_Integer Index) const