]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#2309 Possibility to hide faces
authornds <nds@opencascade.com>
Thu, 18 Jan 2018 06:31:25 +0000 (09:31 +0300)
committernds <nds@opencascade.com>
Thu, 18 Jan 2018 06:31:25 +0000 (09:31 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index 8d2aeb755980b982d440247f7b46082e4e69b6e6..fe20fa5daf04e5159eaa6512e8cc30e30b9ff551 100755 (executable)
@@ -145,14 +145,11 @@ bool ModuleBase_ResultPrs::isSubShapeHidden(const TopoDS_Shape& theShape)
   if (theShape.IsNull() || theShape.ShapeType() != TopAbs_FACE) // only face shape can be hidden
     return false;
 
-  if (myHiddenSubShapes.Contains(theShape))
-    return true;
-
   // orientation of parameter shape(come from selection) may be wrong, check isEqual() to be sure
   for (NCollection_List<TopoDS_Shape>::Iterator aShapeIt(myHiddenSubShapes); aShapeIt.More();
     aShapeIt.Next())
   {
-    if (theShape.IsEqual(aShapeIt.Value()))
+    if (theShape.IsSame(aShapeIt.Value()))
       return true;
   }