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

Function get_RelatingObject

src/ifcgeom/mapping/mapping.cpp:728–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726
727namespace {
728 IfcUtil::IfcBaseEntity* get_RelatingObject(IfcSchema::IfcRelDecomposes* decompose) {
729#ifdef SCHEMA_IfcRelDecomposes_HAS_RelatingObject
730 return decompose->RelatingObject();
731#else
732 IfcSchema::IfcRelAggregates* aggr = decompose->as<IfcSchema::IfcRelAggregates>();
733 if (aggr != nullptr) {
734 return aggr->RelatingObject();
735 }
736 return nullptr;
737#endif
738 }
739}
740
741IfcUtil::IfcBaseEntity* mapping::get_decomposing_entity(const IfcUtil::IfcBaseEntity* inst, bool include_openings) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected