From: jfa Date: Wed, 30 Aug 2006 06:24:58 +0000 (+0000) Subject: PAL12470: Cannot use boolean operations on COMPOUNDs and COMPSOLIDs. Fix FUSE regression. X-Git-Tag: V3_2_2pre~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53942415489efb924c4f072ab1767672da1fb025;p=modules%2Fgeom.git PAL12470: Cannot use boolean operations on COMPOUNDs and COMPSOLIDs. Fix FUSE regression. --- diff --git a/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx b/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx index ca0812c39..08e52e11e 100644 --- a/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx @@ -175,21 +175,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(TFunction_Logbook& log) const // perform FUSE operation else if (aType == BOOLEAN_FUSE) { - // check shapes to provide special processing for compounds and compsolids - if (aShape1.ShapeType() == TopAbs_COMPOUND || - aShape1.ShapeType() == TopAbs_COMPSOLID || - aShape2.ShapeType() == TopAbs_COMPOUND || - aShape2.ShapeType() == TopAbs_COMPSOLID) { - // at least one of arguments is complex - StdFail_NotDone::Raise("Fuse operation aborted: one of arguments is a complex shape"); - } else { - // simple arguments - BRepAlgoAPI_Fuse BO (aShape1, aShape2); - if (!BO.IsDone()) { - StdFail_NotDone::Raise("Fuse operation can not be performed on the given shapes"); - } - aShape = BO.Shape(); + BRepAlgoAPI_Fuse BO (aShape1, aShape2); + if (!BO.IsDone()) { + StdFail_NotDone::Raise("Fuse operation can not be performed on the given shapes"); } + aShape = BO.Shape(); } // perform SECTION operation