mapping: always overwrite orientation of loop as facebound

This commit is contained in:
Thomas Krijnen
2023-09-14 21:58:46 +02:00
parent 380cf4eca5
commit 79d456bbf1
+9 -10
View File
@@ -29,16 +29,15 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcFace* inst) {
if (!bound->Orientation()) { if (!bound->Orientation()) {
r->reverse(); r->reverse();
} }
if (bound->declaration().is(IfcSchema::IfcFaceOuterBound::Class())) { // @todo check why loop sets external to true initially
r->external = true; r->external = bound->declaration().is(IfcSchema::IfcFaceOuterBound::Class());
/* /*
// Make a copy in case we need immutability later for e.g. caching // Make a copy in case we need immutability later for e.g. caching
auto s = r->clone(); auto s = r->clone();
((taxonomy::loop*)s)->external = true; ((taxonomy::loop*)s)->external = true;
delete r; delete r;
r = s; r = s;
*/ */
}
face->children.push_back(r); face->children.push_back(r);
} }
} }