mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +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) {
|
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcArbitraryClosedProfileDef* inst) {
|
||||||
auto loop = taxonomy::cast<taxonomy::loop>(map(inst->OuterCurve()));
|
auto loop = taxonomy::cast<taxonomy::loop>(map(inst->OuterCurve()));
|
||||||
if (loop) {
|
if (loop) {
|
||||||
|
if (inst->ProfileType() == IfcSchema::IfcProfileTypeEnum::IfcProfileType_CURVE) {
|
||||||
|
return loop;
|
||||||
|
}
|
||||||
|
|
||||||
auto face = taxonomy::make<taxonomy::face>();
|
auto face = taxonomy::make<taxonomy::face>();
|
||||||
loop->external = true;
|
loop->external = true;
|
||||||
face->children = { loop };
|
face->children = { loop };
|
||||||
|
|||||||
Reference in New Issue
Block a user