// Created on: 1992-04-06 // Created by: Jacques GOUSSARD // Copyright (c) 1992-1999 Matra Datavision // Copyright (c) 1999-2012 OPEN CASCADE SAS // // The content of this file is subject to the Open CASCADE Technology Public // License Version 6.5 (the "License"). You may not use the content of this file // except in compliance with the License. Please obtain a copy of the License // at http://www.opencascade.org and read it completely before using this file. // // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. // // The Original Code and all software distributed under the License is // distributed on an "AS IS" basis, without warranty of any kind, and the // Initial Developer hereby disclaims all such warranties, including without // limitation, any warranties of merchantability, fitness for a particular // purpose or non-infringement. Please see the License for the specific terms // and conditions governing the rights and limitations under the License. #include #include #include inline const Handle(Adaptor2d_HCurve2d)& IntPatch_RLine::ArcOnS1() const { return theArcOnS1; } inline const Handle(Adaptor2d_HCurve2d)& IntPatch_RLine::ArcOnS2() const { return theArcOnS2; } //-- Il faut mettre cet include ici , car l include fait un define Handle(Adaptor2d_HCurve2d) ... //-- et en fin de fichier un undef Handle(Adaptor2d_HCurve2d) ... inline void IntPatch_RLine::AddVertex (const IntPatch_Point& Pnt) { svtx.Append(Pnt); } inline void IntPatch_RLine::Replace (const Standard_Integer Index, const IntPatch_Point& Pnt) { svtx(Index) = Pnt; } inline void IntPatch_RLine::SetFirstPoint (const Standard_Integer IndFirst) { fipt = Standard_True; indf = IndFirst; } inline void IntPatch_RLine::SetLastPoint (const Standard_Integer IndLast) { lapt = Standard_True; indl = IndLast; } inline void IntPatch_RLine::Add(const Handle(IntSurf_LineOn2S)& L) { curv = L; } inline Standard_Boolean IntPatch_RLine::IsArcOnS1() const { return onS1; } inline Standard_Boolean IntPatch_RLine::IsArcOnS2() const { return onS2; } inline Standard_Boolean IntPatch_RLine::HasFirstPoint () const { return fipt; } inline Standard_Boolean IntPatch_RLine::HasLastPoint () const { return lapt; } inline const IntPatch_Point& IntPatch_RLine::FirstPoint () const { if (!fipt) {Standard_DomainError::Raise();} return svtx(indf); } inline const IntPatch_Point& IntPatch_RLine::LastPoint () const { if (!lapt) {Standard_DomainError::Raise();} return svtx(indl); } inline Standard_Integer IntPatch_RLine::NbVertex () const { return svtx.Length(); } inline const IntPatch_Point& IntPatch_RLine::Vertex (const Standard_Integer Index) const { return svtx(Index); } inline Standard_Boolean IntPatch_RLine::HasPolygon () const { return (!curv.IsNull()); } inline Standard_Integer IntPatch_RLine::NbPnts () const { if (curv.IsNull()) {Standard_DomainError::Raise();} return curv->NbPoints(); } inline const IntSurf_PntOn2S& IntPatch_RLine::Point (const Standard_Integer Index) const { if (curv.IsNull()) {Standard_DomainError::Raise();} return curv->Value(Index); }