mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +00:00
Major update: taxonomy shared pointers, collection type safety, work towards hashing
This commit is contained in:
@@ -21,10 +21,10 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::item* mapping::map_impl(const IfcSchema::IfcPolygonalBoundedHalfSpace* inst) {
|
||||
auto s = (taxonomy::solid*)map_impl((IfcSchema::IfcHalfSpaceSolid*) inst);
|
||||
auto f = (taxonomy::face*)s->children[0];
|
||||
f->children = { map(inst->PolygonalBoundary()) };
|
||||
f->matrix = as<taxonomy::matrix4>(map(inst->Position()));
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcPolygonalBoundedHalfSpace* inst) {
|
||||
auto s = taxonomy::cast<taxonomy::solid>(map_impl((IfcSchema::IfcHalfSpaceSolid*) inst));
|
||||
auto f = s->children[0]->children[0];
|
||||
f->children = { taxonomy::cast<taxonomy::loop>(map(inst->PolygonalBoundary())) };
|
||||
f->matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user