mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 12:56:26 +00:00
Fix IFC4 compilation
This commit is contained in:
@@ -1052,12 +1052,10 @@ IfcSchema::IfcRelVoidsElement::list::ptr IfcGeom::Kernel::find_openings(IfcSchem
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
#ifdef USE_IFC4
|
#ifdef USE_IFC4
|
||||||
IfcSchema::IfcRelAggregates::list::ptr decomposes = obdef->Decomposes();
|
IfcSchema::IfcRelAggregates::list::ptr decomposes = obdef->Decomposes();
|
||||||
for ( IfcSchema::IfcRelAggregates::list::it it = decomposes->begin(); it != decomposes->end(); ++ it ) {
|
|
||||||
#else
|
#else
|
||||||
IfcSchema::IfcRelDecomposes::list::ptr decomposes = obdef->Decomposes();
|
IfcSchema::IfcRelDecomposes::list::ptr decomposes = obdef->Decomposes();
|
||||||
if (decomposes->size() != 1) break;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
if (decomposes->size() != 1) break;
|
||||||
IfcSchema::IfcObjectDefinition* rel_obdef = (*decomposes->begin())->RelatingObject();
|
IfcSchema::IfcObjectDefinition* rel_obdef = (*decomposes->begin())->RelatingObject();
|
||||||
if ( rel_obdef->is(IfcSchema::Type::IfcElement) && !rel_obdef->is(IfcSchema::Type::IfcOpeningElement) ) {
|
if ( rel_obdef->is(IfcSchema::Type::IfcElement) && !rel_obdef->is(IfcSchema::Type::IfcOpeningElement) ) {
|
||||||
IfcSchema::IfcElement* element = (IfcSchema::IfcElement*)rel_obdef;
|
IfcSchema::IfcElement* element = (IfcSchema::IfcElement*)rel_obdef;
|
||||||
|
|||||||
Reference in New Issue
Block a user