From: skl Date: Mon, 18 Jan 2010 12:20:30 +0000 (+0000) Subject: Changes for bug 20662. X-Git-Tag: PARAVIS_29012010~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0360d3691ecacd5445aa91ad2b89636c55ee425e;p=modules%2Fgeom.git Changes for bug 20662. --- diff --git a/src/GEOMImpl/GEOMImpl_GlueDriver.cxx b/src/GEOMImpl/GEOMImpl_GlueDriver.cxx index ceb2f5c02..af0d29f43 100644 --- a/src/GEOMImpl/GEOMImpl_GlueDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_GlueDriver.cxx @@ -44,6 +44,8 @@ #include #include +#include + #include #include @@ -146,6 +148,13 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueFacesWithWarnings (const TopoDS_Shape& the aRes = aGluer.Result(); + // SKL 18.01.2010 - patch for 20662 + Handle(ShapeFix_Shape) aSfs = new ShapeFix_Shape(aRes); + aSfs->SetPrecision(Precision::Confusion()); + aSfs->Perform(); + aRes = aSfs->Shape(); + + // Fill history to be used by GetInPlace functionality TopTools_IndexedMapOfShape aResIndices; TopExp::MapShapes(aRes, aResIndices);