Don't fail on tapered extrusion over non-derived profile def #5046

This commit is contained in:
Thomas Krijnen
2024-07-21 11:53:42 +02:00
parent c16cfc8afd
commit 889d3c5451
@@ -42,6 +42,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcExtrudedAreaSolidTapered* in
taxonomy::cast<taxonomy::face>(map(inst->EndSweptArea()))
};
if (!loft->children.back()->matrix) {
loft->children.back()->matrix = taxonomy::make<taxonomy::matrix4>();
}
auto old = loft->children.back()->matrix->ccomponents();
loft->children.back()->matrix->components() = old * end_profile;