From: jfa Date: Tue, 23 Mar 2010 11:54:42 +0000 (+0000) Subject: Mantis issue 0020706: EDF 1263 GEOM: Suppress faces does notremove faces and adds... X-Git-Tag: V5_1_4a1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0e748333f5ec277b610e61f57d37f5780cffb5f;p=modules%2Fgeom.git Mantis issue 0020706: EDF 1263 GEOM: Suppress faces does notremove faces and adds some more. --- diff --git a/src/GEOMImpl/GEOMImpl_HealingDriver.cxx b/src/GEOMImpl/GEOMImpl_HealingDriver.cxx index cc54d8189..6dd8160f6 100644 --- a/src/GEOMImpl/GEOMImpl_HealingDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_HealingDriver.cxx @@ -26,6 +26,8 @@ #include #include +#include + #include #include #include @@ -42,6 +44,8 @@ #include #include +#include + #include //======================================================================= @@ -261,6 +265,11 @@ Standard_Boolean GEOMImpl_HealingDriver::SuppressFaces (GEOMImpl_IHealing* theHI aShapesFaces.Append(aFace); } SuppressFacesRec(aShapesFaces, theOriginalShape, theOutShape); + if ((theOriginalShape.ShapeType() == TopAbs_COMPOUND || + theOriginalShape.ShapeType() == TopAbs_COMPSOLID)) { + TopoDS_Shape aSh = theOutShape; + theOutShape = GEOMImpl_GlueDriver::GlueFaces(aSh, Precision::Confusion(), Standard_True); + } } return Standard_True;