mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Use ProfileType in mapping #6175
This commit is contained in:
@@ -26,6 +26,10 @@ using namespace ifcopenshell::geometry;
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcArbitraryClosedProfileDef* inst) {
|
||||
auto loop = taxonomy::cast<taxonomy::loop>(map(inst->OuterCurve()));
|
||||
if (loop) {
|
||||
if (inst->ProfileType() == IfcSchema::IfcProfileTypeEnum::IfcProfileType_CURVE) {
|
||||
return loop;
|
||||
}
|
||||
|
||||
auto face = taxonomy::make<taxonomy::face>();
|
||||
loop->external = true;
|
||||
face->children = { loop };
|
||||
|
||||
Reference in New Issue
Block a user