// File: IntCurve_Polygon2dGen.lxx // Created: Thu 3 Jun 1993 // Author: Laurent BUCHARD // #include //====================================================================== inline const Bnd_Box2d& IntCurve_Polygon2dGen::Bounding(void) const { return(TheBnd); } //====================================================================== inline Standard_Real IntCurve_Polygon2dGen::DeflectionOverEstimation() const { return(TheDeflection); }//====================================================================== inline void IntCurve_Polygon2dGen::SetDeflectionOverEstimation (const Standard_Real x) { TheDeflection = x; TheBnd.Enlarge(TheDeflection); } //====================================================================== inline void IntCurve_Polygon2dGen::Closed(const Standard_Boolean flag) { ClosedPolygon = flag; } //====================================================================== inline Standard_Boolean IntCurve_Polygon2dGen::Closed(void) const { return(Standard_False); //-- Voir si le cas Closed est traitable } //====================================================================== inline Standard_Integer IntCurve_Polygon2dGen::NbSegments(void) const { return((ClosedPolygon)? NbPntIn : NbPntIn-1); } //====================================================================== inline const gp_Pnt2d& IntCurve_Polygon2dGen::EndOfSeg(const Standard_Integer Index) const { Standard_Integer ind = Index; if (Index >= NbPntIn) { if (!ClosedPolygon) Standard_OutOfRange::Raise("OutOfRange Polygon2d::EndOfSeg !"); ind = 0; } return ThePnts(TheIndex(ind+1)); } //====================================================================== inline const gp_Pnt2d& IntCurve_Polygon2dGen::BeginOfSeg(const Standard_Integer Index) const { return ThePnts(TheIndex(Index)); } //====================================================================== inline Standard_Real IntCurve_Polygon2dGen::InfParameter() const { return(TheParams.Value(TheIndex(1))); } //====================================================================== inline Standard_Real IntCurve_Polygon2dGen::SupParameter() const { return(TheParams.Value(TheIndex(NbPntIn))); } //====================================================================== //====================================================================== inline Standard_Integer IntCurve_Polygon2dGen::CalculRegion(const Standard_Real x, const Standard_Real y, const Standard_Real x1, const Standard_Real x2, const Standard_Real y1, const Standard_Real y2) const { Standard_Integer r; if(xx2) { r=2; } else { r=0; } } if(yy2) { r|=8; } } return(r); }