Allow returning nativeelement in create_shape()

This commit is contained in:
Thomas Krijnen
2024-10-08 20:58:02 +02:00
parent bfe3601fd1
commit b34157e257
+1 -1
View File
@@ -942,7 +942,7 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
delete brep;
return triangulation;
} else {
throw IfcParse::IfcException("No element to return based on provided settings");
return brep;
}
} else if (instance->as<typename Schema::IfcPlacement>() != nullptr || instance->as<typename Schema::IfcObjectPlacement>()) {
auto item = ifcopenshell::geometry::taxonomy::cast<ifcopenshell::geometry::taxonomy::matrix4>(kernel.mapping()->map(instance));