Handle infra sweeps of open loops #7338

This commit is contained in:
Thomas Krijnen
2025-11-13 12:43:41 +01:00
parent 6a7ecf7f58
commit a34e42a519
2 changed files with 24 additions and 10 deletions
@@ -24,5 +24,11 @@
using namespace ifcopenshell::geometry;
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcArbitraryOpenProfileDef* inst) {
return map(inst->Curve());
auto mapped = map(inst->Curve());
if (mapped->kind() == taxonomy::LOOP) {
auto r = taxonomy::loop::ptr((taxonomy::loop*)mapped->clone_());
r->closed = false;
return r;
}
return mapped;
}