From: jfa Date: Thu, 12 Mar 2009 12:57:03 +0000 (+0000) Subject: Bug 0020207: EDF GEOM 960: MakePipe : Generation of redundant doubled faces. X-Git-Tag: V5_1_1rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9aaaddfbd19c06a06bfd52d49c12f0e3b850072b;p=modules%2Fgeom.git Bug 0020207: EDF GEOM 960: MakePipe : Generation of redundant doubled faces. --- diff --git a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx index 430cb0ef9..212575e3a 100644 --- a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx @@ -18,7 +18,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// + #include #include @@ -28,10 +28,11 @@ #include #include #include +#include #include #include -#include +//#include #include #include @@ -2389,6 +2390,11 @@ Standard_Integer GEOMImpl_PipeDriver::Execute(TFunction_Logbook& log) const Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result"); } + // Glue (for bug 0020207) + TopExp_Explorer anExpV (aShape, TopAbs_VERTEX); + if (anExpV.More()) + aShape = GEOMImpl_GlueDriver::GlueFaces(aShape, Precision::Confusion(), Standard_True); + TopoDS_Shape aRes = GEOMImpl_IShapesOperations::CompsolidToCompound(aShape); aFunction->SetValue(aRes);