mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
profile_helper() returns loop, not face, take into account in hollow profile def
This commit is contained in:
@@ -68,11 +68,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRectangleHollowProfileDef* i
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
s1->children.push_back(s2->children[0]);
|
auto f = taxonomy::cast<taxonomy::face>(s1);
|
||||||
|
s2->external = false;
|
||||||
|
f->children.push_back(s2);
|
||||||
|
|
||||||
#ifdef TAXONOMY_USE_NAKED_PTR
|
return f;
|
||||||
delete s2;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return s1;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user