mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +00:00
Work towards v1.0 data model with encapsulated weak_ptr as basis for instances
This commit is contained in:
@@ -22,13 +22,13 @@
|
||||
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcBlock* inst) {
|
||||
const double dx = inst->XLength() * length_unit_;
|
||||
const double dy = inst->YLength() * length_unit_;
|
||||
const double dz = inst->ZLength() * length_unit_;
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcBlock& inst) {
|
||||
const double dx = inst.XLength() * length_unit_;
|
||||
const double dy = inst.YLength() * length_unit_;
|
||||
const double dz = inst.ZLength() * length_unit_;
|
||||
|
||||
auto solid = create_box(dx, dy, dz);
|
||||
solid->matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
|
||||
solid->matrix = taxonomy::cast<taxonomy::matrix4>(map(inst.Position()));
|
||||
|
||||
return solid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user