mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
mapping: always overwrite orientation of loop as facebound
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user