mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-01 01:16:27 +00:00
Work towards v1.0 data model with encapsulated weak_ptr as basis for instances
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcLine* inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcLine& inst) {
|
||||
// @todo test with trimmed curve on non-normalized direction
|
||||
auto l = taxonomy::make<taxonomy::line>();
|
||||
auto pnt = taxonomy::cast<taxonomy::point3>(map(inst->Pnt()));
|
||||
auto dir = taxonomy::cast<taxonomy::direction3>(map(inst->Dir()));
|
||||
auto pnt = taxonomy::cast<taxonomy::point3>(map(inst.Pnt()));
|
||||
auto dir = taxonomy::cast<taxonomy::direction3>(map(inst.Dir()));
|
||||
l->matrix = taxonomy::make<taxonomy::matrix4>(pnt->ccomponents(), dir->ccomponents());
|
||||
return l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user