From: jfa Date: Tue, 9 Oct 2012 10:27:08 +0000 (+0000) Subject: Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles X-Git-Tag: V6_6_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08a90cb03f6d2befe6f0b923bd690182ded48378;p=modules%2Fgeom.git Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles --- diff --git a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx index 9f2ec8081..c83f91417 100644 --- a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx @@ -594,6 +594,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const BRepCheck_Analyzer ana (aShape, false); if (!ana.IsValid()) { //Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result"); + // For Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles + Handle(ShapeFix_Shape) aSfs = new ShapeFix_Shape (aShape); + aSfs->Perform(); + aShape = aSfs->Shape(); } aFunction->SetValue(aShape);