mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Take into account tapered extrusion position
This commit is contained in:
@@ -48,6 +48,17 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcExtrudedAreaSolidTapered* in
|
||||
auto old = loft->children.back()->matrix->ccomponents();
|
||||
loft->children.back()->matrix->components() = old * end_profile;
|
||||
|
||||
taxonomy::matrix4::ptr matrix;
|
||||
bool has_position = true;
|
||||
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
||||
has_position = inst->Position() != nullptr;
|
||||
#endif
|
||||
if (has_position) {
|
||||
matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
|
||||
}
|
||||
|
||||
loft->matrix = matrix;
|
||||
|
||||
return loft;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user