mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
Work towards v1.0 data model with encapsulated weak_ptr as basis for instances
This commit is contained in:
@@ -23,10 +23,10 @@ using namespace ifcopenshell::geometry;
|
||||
|
||||
#ifdef SCHEMA_HAS_IfcCylindricalSurface
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcCylindricalSurface* inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcCylindricalSurface& inst) {
|
||||
auto c = taxonomy::make<taxonomy::cylinder>();
|
||||
c->radius = inst->Radius() * length_unit_;
|
||||
c->matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
|
||||
c->radius = inst.Radius() * length_unit_;
|
||||
c->matrix = taxonomy::cast<taxonomy::matrix4>(map(inst.Position()));
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user