mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +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();
|
auto old = loft->children.back()->matrix->ccomponents();
|
||||||
loft->children.back()->matrix->components() = old * end_profile;
|
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;
|
return loft;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user