]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020547: EDF 1146 GEOM: Unable to create a solid from a cylinder created with MakePip...
authordmv <dmv@opencascade.com>
Mon, 26 Oct 2009 08:42:18 +0000 (08:42 +0000)
committerdmv <dmv@opencascade.com>
Mon, 26 Oct 2009 08:42:18 +0000 (08:42 +0000)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx

index ca0f348edef62f74fb985200661ad786f8ada1c9..17854800a356768ce482dd2b8274d18bca240afc 100644 (file)
@@ -412,15 +412,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
     if ( ish == 0 ) return 0;
     BRepClass3d_SolidClassifier SC (Sol);
     SC.PerformInfinitePoint(Precision::Confusion());
-    switch (SC.State()) {
-    case TopAbs_IN:
-      aShape = Sol.Reversed(); break;
-    case TopAbs_OUT:
-      aShape = Sol; break;
-    default: // not closed shell?
-      return 0;
-    }
-
+    if (SC.State() == TopAbs_IN)
+      aShape = Sol.Reversed();
+    else
+      aShape = Sol;
   }
   else if (aType == COMPOUND_SHAPES) {
     Handle(TColStd_HSequenceOfTransient) aShapes = aCI.GetShapes();