mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix ensure_fit_for_subtraction() function when input shape is a solid
This commit is contained in:
@@ -126,7 +126,9 @@ bool IfcGeom::is_compound(const TopoDS_Shape& shape) {
|
|||||||
|
|
||||||
const TopoDS_Shape& IfcGeom::ensure_fit_for_subtraction(const TopoDS_Shape& shape, TopoDS_Shape& solid) {
|
const TopoDS_Shape& IfcGeom::ensure_fit_for_subtraction(const TopoDS_Shape& shape, TopoDS_Shape& solid) {
|
||||||
const bool is_comp = IfcGeom::is_compound(shape);
|
const bool is_comp = IfcGeom::is_compound(shape);
|
||||||
if ( ! is_comp ) return shape;
|
if (!is_comp) {
|
||||||
|
return solid = shape;
|
||||||
|
}
|
||||||
IfcGeom::create_solid_from_compound(shape, solid);
|
IfcGeom::create_solid_from_compound(shape, solid);
|
||||||
|
|
||||||
// If the SEW_SHELLS option had been set this precision had been applied
|
// If the SEW_SHELLS option had been set this precision had been applied
|
||||||
|
|||||||
Reference in New Issue
Block a user