]> 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:43:19 +0000 (08:43 +0000)
committerdmv <dmv@opencascade.com>
Mon, 26 Oct 2009 08:43:19 +0000 (08:43 +0000)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx

index 43af2ed5cc6cde367c3441321ddbf31788695119..c61263aa69e95a03b9c6ed92372538f340f655db 100644 (file)
@@ -389,15 +389,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();