From 08a90cb03f6d2befe6f0b923bd690182ded48378 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 9 Oct 2012 10:27:08 +0000 Subject: [PATCH] Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles --- src/GEOMImpl/GEOMImpl_ShapeDriver.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.2