From 889d3c5451dd0fef2437f73daa56ba6ea2aaf5c3 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 21 Jul 2024 11:53:42 +0200 Subject: [PATCH] Don't fail on tapered extrusion over non-derived profile def #5046 --- src/ifcgeom/mapping/IfcExtrudedAreaSolidTapered.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcgeom/mapping/IfcExtrudedAreaSolidTapered.cpp b/src/ifcgeom/mapping/IfcExtrudedAreaSolidTapered.cpp index b33894a4b6..45ad6c3009 100644 --- a/src/ifcgeom/mapping/IfcExtrudedAreaSolidTapered.cpp +++ b/src/ifcgeom/mapping/IfcExtrudedAreaSolidTapered.cpp @@ -42,6 +42,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcExtrudedAreaSolidTapered* in taxonomy::cast(map(inst->EndSweptArea())) }; + if (!loft->children.back()->matrix) { + loft->children.back()->matrix = taxonomy::make(); + } auto old = loft->children.back()->matrix->ccomponents(); loft->children.back()->matrix->components() = old * end_profile;