mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +00:00
Work towards v1.0 data model with encapsulated weak_ptr as basis for instances
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) {
|
||||
auto d = taxonomy::cast<taxonomy::direction3>(map(inst->Orientation()));
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector& inst) {
|
||||
auto d = taxonomy::cast<taxonomy::direction3>(map(inst.Orientation()));
|
||||
d = taxonomy::direction3::ptr(d->clone_());
|
||||
d->components() *= inst->Magnitude() * length_unit_;
|
||||
d->components() *= inst.Magnitude() * length_unit_;
|
||||
return d;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user