Fix ensure_fit_for_subtraction() function when input shape is a solid

This commit is contained in:
Thomas Krijnen
2015-06-21 16:14:37 +00:00
parent 9619543137
commit e39cbc6d00
+3 -1
View File
@@ -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 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);
// If the SEW_SHELLS option had been set this precision had been applied