]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Changes for bug 20662.
authorskl <skl@opencascade.com>
Mon, 18 Jan 2010 12:20:30 +0000 (12:20 +0000)
committerskl <skl@opencascade.com>
Mon, 18 Jan 2010 12:20:30 +0000 (12:20 +0000)
src/GEOMImpl/GEOMImpl_GlueDriver.cxx

index ceb2f5c02fd712e95354cd5a9f891ff47352ec71..af0d29f43f4625aade6802eb584f0dafcbdb4882 100644 (file)
@@ -44,6 +44,8 @@
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 
+#include <ShapeFix_Shape.hxx>
+
 #include <Standard_NullObject.hxx>
 #include <Standard_Failure.hxx>
 
@@ -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);