]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[bos #32720] EDF 25230 - partition fails on small case V9_10_BR V9_10_0 V9_10_0rc1
authorjfa <jfa@opencascade.com>
Fri, 18 Nov 2022 15:19:11 +0000 (18:19 +0300)
committerjfa <jfa@opencascade.com>
Tue, 22 Nov 2022 12:08:47 +0000 (15:08 +0300)
src/GEOMImpl/GEOMImpl_PartitionDriver.cxx

index 4875c4eb6449df6a47ac7866455f515ab7539b5b..e4c3925ad79f9f72b4f9cf0df52786627ae7568b 100644 (file)
@@ -423,14 +423,16 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
       return 0;
   }
 
-  //Alternative case to check not valid partition IPAL21418
-  TopoDS_Iterator It (aShape, Standard_True, Standard_True);
-  int nbSubshapes = 0;
-  for (; It.More(); It.Next())
-    nbSubshapes++;
-  if (!nbSubshapes)
-    Standard_ConstructionError::Raise("Partition aborted : non valid shape result");
-  //end of IPAL21418
+  if (aShape.ShapeType() != TopAbs_VERTEX) {
+    //Alternative case to check not valid partition IPAL21418
+    TopoDS_Iterator It (aShape, Standard_True, Standard_True);
+    int nbSubshapes = 0;
+    for (; It.More(); It.Next())
+      nbSubshapes++;
+    if (!nbSubshapes)
+      Standard_ConstructionError::Raise("Partition aborted : non valid shape result");
+    //end of IPAL21418
+  }
 
   if ( !GEOMUtils::CheckShape(aShape, true) && !GEOMUtils::FixShapeTolerance(aShape) )
     Standard_ConstructionError::Raise("Partition aborted : non valid shape result");