0032604: Visualization, AIS_LightSource - improve dragging robustness
[occt.git] / src / Select3D / Select3D_SensitiveSphere.hxx
index 3202401..765d627 100644 (file)
@@ -58,6 +58,12 @@ public:
   //! Returns the position of detected point on the sphere.
   const gp_Pnt& LastDetectedPoint() const { return myLastDetectedPoint; }
 
+  //! Invalidate the position of detected point on the sphere.
+  void ResetLastDetectedPoint()
+  {
+    myLastDetectedPoint = gp_Pnt (RealLast(), RealLast(), RealLast());
+  }
+
 protected:
   gp_Pnt        myCenter;
   gp_Pnt        myLastDetectedPoint;