mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
IfcArbitraryProfileDefWithVoids
This commit is contained in:
@@ -1205,11 +1205,23 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcRectangleProfileDef* inst)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
taxonomy::item* mapping::map_impl(const IfcSchema::IfcArbitraryClosedProfileDef* l) {
|
taxonomy::item* mapping::map_impl(const IfcSchema::IfcArbitraryClosedProfileDef* inst) {
|
||||||
auto loop = map(l->OuterCurve());
|
auto loop = map(inst->OuterCurve());
|
||||||
if (loop) {
|
if (loop) {
|
||||||
auto face = new taxonomy::face;
|
auto face = new taxonomy::face;
|
||||||
|
((taxonomy::loop*)loop)->external = true;
|
||||||
face->children = { loop };
|
face->children = { loop };
|
||||||
|
if (inst->as<IfcSchema::IfcArbitraryProfileDefWithVoids>()) {
|
||||||
|
auto with_voids = inst->as<IfcSchema::IfcArbitraryProfileDefWithVoids>();
|
||||||
|
auto voids = with_voids->InnerCurves();
|
||||||
|
for (auto& v : *voids) {
|
||||||
|
auto inner_loop = map(v);
|
||||||
|
if (inner_loop) {
|
||||||
|
((taxonomy::loop*)inner_loop)->external = false;
|
||||||
|
face->children.push_back(inner_loop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return face;
|
return face;
|
||||||
} else {
|
} else {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ BIND(IfcHalfSpaceSolid);
|
|||||||
// BIND(IfcSurfaceCurveSweptAreaSolid);
|
// BIND(IfcSurfaceCurveSweptAreaSolid);
|
||||||
// BIND(IfcSweptDiskSolid);
|
// BIND(IfcSweptDiskSolid);
|
||||||
|
|
||||||
// BIND(IfcArbitraryProfileDefWithVoids);
|
// IfcArbitraryProfileDefWithVoids included
|
||||||
BIND(IfcArbitraryClosedProfileDef);
|
BIND(IfcArbitraryClosedProfileDef);
|
||||||
// BIND(IfcRoundedRectangleProfileDef);
|
// BIND(IfcRoundedRectangleProfileDef);
|
||||||
// BIND(IfcRectangleHollowProfileDef);
|
// BIND(IfcRectangleHollowProfileDef);
|
||||||
|
|||||||
Reference in New Issue
Block a user