]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide faces: checking presentation on having any shapes using a whole container of...
authornds <nds@opencascade.com>
Thu, 14 Dec 2017 13:46:13 +0000 (16:46 +0300)
committernds <nds@opencascade.com>
Thu, 14 Dec 2017 13:46:13 +0000 (16:46 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index c1ce983e0ff76b86cec30a7a340ff2e678cef265..6dd875f779274996ee88f9b2b3a478d38e76de77 100755 (executable)
@@ -146,7 +146,12 @@ bool ModuleBase_ResultPrs::hasSubShapeVisible(
   TopoDS_Compound aCompound;
   BRep_Builder aBuilder;
   aBuilder.MakeCompound (aCompound);
-  collectSubShapes(aBuilder, aCompound, myOriginalShape, theShapesToSkip);
+  NCollection_List<TopoDS_Shape> aShapesToSkip;
+  aShapesToSkip.Append(myHiddenSubShapes);
+  for (NCollection_List<TopoDS_Shape>::Iterator anIt(theShapesToSkip); anIt.More(); anIt.Next())
+    aShapesToSkip.Append(anIt.Value());
+
+  collectSubShapes(aBuilder, aCompound, myOriginalShape, aShapesToSkip);
   return !BOPTools_AlgoTools3D::IsEmptyShape(aCompound);
 }