diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 002fd03aa0..9ef6bc5ae4 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -942,7 +942,7 @@ struct ShapeRTTI : public boost::static_visitor delete brep; return triangulation; } else { - throw IfcParse::IfcException("No element to return based on provided settings"); + return brep; } } else if (instance->as() != nullptr || instance->as()) { auto item = ifcopenshell::geometry::taxonomy::cast(kernel.mapping()->map(instance));