Clarify Compound of Solids behaviour in create_solid_from_faces() #6780

This commit is contained in:
Thomas Krijnen
2025-06-05 10:22:28 +02:00
parent 1ce9a4c68e
commit 5af7c9a32d
2 changed files with 5 additions and 3 deletions
@@ -1451,10 +1451,10 @@ TopoDS_Shape IfcGeom::util::ensure_fit_for_subtraction(const TopoDS_Shape& shape
return shape;
}
TopoDS_Solid solid;
if (!create_solid_from_compound(shape, solid, tol)) {
TopoDS_Shape solid_or_compound_of_solids;
if (!create_solid_from_compound(shape, solid_or_compound_of_solids, tol)) {
return shape;
}
return solid;
return solid_or_compound_of_solids;
}