mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 09:40:35 +05:00
[bos #32720] EDF 25230 - partition fails on small case
This commit is contained in:
parent
db6a6a7fe5
commit
7c90108313
@ -423,14 +423,16 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Alternative case to check not valid partition IPAL21418
|
if (aShape.ShapeType() != TopAbs_VERTEX) {
|
||||||
TopoDS_Iterator It (aShape, Standard_True, Standard_True);
|
//Alternative case to check not valid partition IPAL21418
|
||||||
int nbSubshapes = 0;
|
TopoDS_Iterator It (aShape, Standard_True, Standard_True);
|
||||||
for (; It.More(); It.Next())
|
int nbSubshapes = 0;
|
||||||
nbSubshapes++;
|
for (; It.More(); It.Next())
|
||||||
if (!nbSubshapes)
|
nbSubshapes++;
|
||||||
Standard_ConstructionError::Raise("Partition aborted : non valid shape result");
|
if (!nbSubshapes)
|
||||||
//end of IPAL21418
|
Standard_ConstructionError::Raise("Partition aborted : non valid shape result");
|
||||||
|
//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");
|
||||||
|
Loading…
Reference in New Issue
Block a user