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 1068070037
commit e9eb7db620
+3 -1
View File
@@ -134,7 +134,9 @@ bool IfcGeom::Kernel::is_compound(const TopoDS_Shape& shape) {
const TopoDS_Shape& IfcGeom::Kernel::ensure_fit_for_subtraction(const TopoDS_Shape& shape, TopoDS_Shape& solid) {
const bool is_comp = is_compound(shape);
if ( ! is_comp ) return shape;
if (!is_comp) {
return solid = shape;
}
create_solid_from_compound(shape, solid);
// If the SEW_SHELLS option had been set this precision had been applied