MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / flatten

Method flatten

src/ifcgeom/taxonomy.cpp:543–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542
543ifcopenshell::geometry::taxonomy::collection::ptr ifcopenshell::geometry::flatten(const taxonomy::collection::ptr& deep) {
544 auto flat = make<taxonomy::collection>();
545 ifcopenshell::geometry::visit<taxonomy::collection>(deep, [&flat](taxonomy::ptr i) {
546 flat->children.push_back(std::static_pointer_cast<taxonomy::geom_item>(clone(i)));
547 });
548 return flat;
549}
550
551const std::string& ifcopenshell::geometry::taxonomy::kind_to_string(kinds k) {
552 using namespace std::string_literals;

Callers 1

_executeMethod · 0.80

Calls 2

push_backMethod · 0.80
cloneFunction · 0.70

Tested by

no test coverage detected