From 737c92413224279e31061e7789fe41c421f70442 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 14 Dec 2017 16:46:13 +0300 Subject: [PATCH] Hide faces: checking presentation on having any shapes using a whole container of shapes to be hidden. --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.39.2