[bos #32720] EDF 25230 - partition fails on small case

This commit is contained in:
jfa 2022-11-18 18:19:11 +03:00
parent fe6ea9b095
commit abd699810f

View File

@ -423,6 +423,7 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
return 0; return 0;
} }
if (aShape.ShapeType() != TopAbs_VERTEX) {
//Alternative case to check not valid partition IPAL21418 //Alternative case to check not valid partition IPAL21418
TopoDS_Iterator It (aShape, Standard_True, Standard_True); TopoDS_Iterator It (aShape, Standard_True, Standard_True);
int nbSubshapes = 0; int nbSubshapes = 0;
@ -431,6 +432,7 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
if (!nbSubshapes) if (!nbSubshapes)
Standard_ConstructionError::Raise("Partition aborted : non valid shape result"); Standard_ConstructionError::Raise("Partition aborted : non valid shape result");
//end of IPAL21418 //end of IPAL21418
}
if ( !GEOMUtils::CheckShape(aShape, true) && !GEOMUtils::FixShapeTolerance(aShape) ) if ( !GEOMUtils::CheckShape(aShape, true) && !GEOMUtils::FixShapeTolerance(aShape) )
Standard_ConstructionError::Raise("Partition aborted : non valid shape result"); Standard_ConstructionError::Raise("Partition aborted : non valid shape result");