From: nds Date: Thu, 14 Dec 2017 13:46:13 +0000 (+0300) Subject: Hide faces: checking presentation on having any shapes using a whole container of... X-Git-Tag: V_2.10.0RC~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=737c92413224279e31061e7789fe41c421f70442;p=modules%2Fshaper.git Hide faces: checking presentation on having any shapes using a whole container of shapes to be hidden. --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index c1ce983e0..6dd875f77 100755 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -146,7 +146,12 @@ bool ModuleBase_ResultPrs::hasSubShapeVisible( TopoDS_Compound aCompound; BRep_Builder aBuilder; aBuilder.MakeCompound (aCompound); - collectSubShapes(aBuilder, aCompound, myOriginalShape, theShapesToSkip); + NCollection_List aShapesToSkip; + aShapesToSkip.Append(myHiddenSubShapes); + for (NCollection_List::Iterator anIt(theShapesToSkip); anIt.More(); anIt.Next()) + aShapesToSkip.Append(anIt.Value()); + + collectSubShapes(aBuilder, aCompound, myOriginalShape, aShapesToSkip); return !BOPTools_AlgoTools3D::IsEmptyShape(aCompound); }