0032337: Visualization - rename Overlaps() method in selection to more self-describab...
[occt.git] / src / Select3D / Select3D_SensitiveSegment.cxx
index 8726d9d..38c10a6 100644 (file)
@@ -47,12 +47,12 @@ Standard_Boolean Select3D_SensitiveSegment::Matches (SelectBasics_SelectingVolum
   {
     if (theMgr.GetActiveSelectionType() == SelectMgr_SelectionType_Polyline)
     {
   {
     if (theMgr.GetActiveSelectionType() == SelectMgr_SelectionType_Polyline)
     {
-      return theMgr.Overlaps (myStart, myEnd, thePickResult);
+      return theMgr.OverlapsSegment (myStart, myEnd, thePickResult);
     }
     }
-    return theMgr.Overlaps (myStart, thePickResult) && theMgr.Overlaps (myEnd, thePickResult);
+    return theMgr.OverlapsPoint (myStart, thePickResult) && theMgr.OverlapsPoint (myEnd, thePickResult);
   }
 
   }
 
-  if (!theMgr.Overlaps (myStart, myEnd, thePickResult)) // check for overlap
+  if (!theMgr.OverlapsSegment (myStart, myEnd, thePickResult)) // check for overlap
   {
     return Standard_False;
   }
   {
     return Standard_False;
   }