X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FSelect3D%2FSelect3D_SensitivePoly.hxx;h=833b637332edbc36908f548795d8bb1eb55cd3fc;hb=7f24b768c30df045ec4a7c712724195643081dfb;hpb=787ff2408c680462f82753ae698239cf5587fa98 diff --git a/src/Select3D/Select3D_SensitivePoly.hxx b/src/Select3D/Select3D_SensitivePoly.hxx index 5e88b4dbb6..833b637332 100644 --- a/src/Select3D/Select3D_SensitivePoly.hxx +++ b/src/Select3D/Select3D_SensitivePoly.hxx @@ -69,6 +69,22 @@ public: } } + //! Return array bounds. + void ArrayBounds (Standard_Integer& theLow, + Standard_Integer& theUp) const + { + theLow = 0; + theUp = myPolyg.Size() - 1; + } + + //! Return point. + gp_Pnt GetPoint3d (const Standard_Integer thePntIdx) const + { + return (thePntIdx >= 0 && thePntIdx < myPolyg.Size()) + ? myPolyg.Pnt (thePntIdx) + : gp_Pnt(); + } + //! Returns bounding box of a polygon. If location //! transformation is set, it will be applied Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;