profile_helper() returns loop, not face, take into account in hollow profile def

This commit is contained in:
Thomas Krijnen
2024-07-21 11:55:18 +02:00
parent f683fd220f
commit cc0760d505
@@ -68,11 +68,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRectangleHollowProfileDef* i
return nullptr;
}
s1->children.push_back(s2->children[0]);
auto f = taxonomy::cast<taxonomy::face>(s1);
s2->external = false;
f->children.push_back(s2);
#ifdef TAXONOMY_USE_NAKED_PTR
delete s2;
#endif
return s1;
return f;
}