0031458: Visualization - refine classes across Prs3d and StdPrs packages
[occt.git] / src / Select3D / Select3D_SensitivePoly.hxx
index 5e88b4d..833b637 100644 (file)
@@ -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;