mark bounds as external based on entity type

This commit is contained in:
Thomas Krijnen
2019-09-01 18:46:11 +02:00
parent 8efb86420e
commit bed9c44883
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -176,6 +176,13 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcFace* inst) {
if (!bound->Orientation()) {
r->reverse();
}
if (bound->declaration().is(IfcSchema::IfcFaceOuterBound::Class())) {
// Make a copy in case we need immutability later for e.g. caching
auto s = r->clone();
((taxonomy::loop*)s)->external = true;
delete r;
r = s;
}
face->children.push_back(r);
}
}