]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles
authorjfa <jfa@opencascade.com>
Tue, 9 Oct 2012 10:27:08 +0000 (10:27 +0000)
committerjfa <jfa@opencascade.com>
Tue, 9 Oct 2012 10:27:08 +0000 (10:27 +0000)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx

index 9f2ec8081ef91a66252bca747b44290ede986db2..c83f91417bb4e65a3e45c795799c4ac2f4783e20 100644 (file)
@@ -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);