From ce26af5a7e1f679922d7fa8fe3f09dbfe7dc96e1 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 23 Feb 2025 11:01:04 +0100 Subject: [PATCH] Use ProfileType in mapping #6175 --- src/ifcgeom/mapping/IfcArbitraryClosedProfileDef.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcgeom/mapping/IfcArbitraryClosedProfileDef.cpp b/src/ifcgeom/mapping/IfcArbitraryClosedProfileDef.cpp index 6a51091f99..3cce6f31dc 100644 --- a/src/ifcgeom/mapping/IfcArbitraryClosedProfileDef.cpp +++ b/src/ifcgeom/mapping/IfcArbitraryClosedProfileDef.cpp @@ -26,6 +26,10 @@ using namespace ifcopenshell::geometry; taxonomy::ptr mapping::map_impl(const IfcSchema::IfcArbitraryClosedProfileDef* inst) { auto loop = taxonomy::cast(map(inst->OuterCurve())); if (loop) { + if (inst->ProfileType() == IfcSchema::IfcProfileTypeEnum::IfcProfileType_CURVE) { + return loop; + } + auto face = taxonomy::make(); loop->external = true; face->children = { loop };