mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Major update: taxonomy shared pointers, collection type safety, work towards hashing
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::item* mapping::map_impl(const IfcSchema::IfcVector* inst) {
|
||||
auto d = (taxonomy::direction3*) map(inst->Orientation());
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) {
|
||||
auto d = taxonomy::cast<taxonomy::direction3>(map(inst->Orientation()));
|
||||
d->components() *= inst->Magnitude() * length_unit_;
|
||||
return d;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user