mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
Allow returning nativeelement in create_shape()
This commit is contained in:
@@ -942,7 +942,7 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
delete brep;
|
delete brep;
|
||||||
return triangulation;
|
return triangulation;
|
||||||
} else {
|
} 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>()) {
|
} 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));
|
auto item = ifcopenshell::geometry::taxonomy::cast<ifcopenshell::geometry::taxonomy::matrix4>(kernel.mapping()->map(instance));
|
||||||
|
|||||||
Reference in New Issue
Block a user