mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix to IfcHierarchyHelper.cpp (#1476)
This commit is contained in:
@@ -159,7 +159,7 @@ typename Schema::IfcSite* IfcHierarchyHelper<Schema>::addSite(typename Schema::I
|
|||||||
boost::none, boost::none, boost::none, boost::none, 0);
|
boost::none, boost::none, boost::none, boost::none, 0);
|
||||||
|
|
||||||
addEntity(site);
|
addEntity(site);
|
||||||
addRelatedObject<typename Schema::IfcRelAggregates>(proj, site);
|
addRelatedObject<typename Schema::IfcRelAggregates>(proj, site, owner_hist);
|
||||||
return site;
|
return site;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ typename Schema::IfcBuilding* IfcHierarchyHelper<Schema>::addBuilding(typename S
|
|||||||
boost::none, boost::none, 0);
|
boost::none, boost::none, 0);
|
||||||
|
|
||||||
addEntity(building);
|
addEntity(building);
|
||||||
addRelatedObject<typename Schema::IfcRelAggregates>(site, building);
|
addRelatedObject<typename Schema::IfcRelAggregates>(site, building, owner_hist);
|
||||||
relatePlacements(site, building);
|
relatePlacements(site, building);
|
||||||
|
|
||||||
return building;
|
return building;
|
||||||
@@ -209,7 +209,7 @@ typename Schema::IfcBuildingStorey* IfcHierarchyHelper<Schema>::addBuildingStore
|
|||||||
Schema::IfcElementCompositionEnum::IfcElementComposition_ELEMENT, boost::none);
|
Schema::IfcElementCompositionEnum::IfcElementComposition_ELEMENT, boost::none);
|
||||||
|
|
||||||
addEntity(storey);
|
addEntity(storey);
|
||||||
addRelatedObject<typename Schema::IfcRelAggregates>(building, storey);
|
addRelatedObject<typename Schema::IfcRelAggregates>(building, storey, owner_hist);
|
||||||
relatePlacements(building, storey);
|
relatePlacements(building, storey);
|
||||||
|
|
||||||
return storey;
|
return storey;
|
||||||
@@ -237,7 +237,7 @@ typename Schema::IfcBuildingStorey* IfcHierarchyHelper<Schema>::addBuildingProdu
|
|||||||
const bool is_decomposition = product->Decomposes()->size() > 0;
|
const bool is_decomposition = product->Decomposes()->size() > 0;
|
||||||
|
|
||||||
if (!is_decomposition) {
|
if (!is_decomposition) {
|
||||||
addRelatedObject<typename Schema::IfcRelContainedInSpatialStructure>(storey, product);
|
addRelatedObject<typename Schema::IfcRelContainedInSpatialStructure>(storey, product, owner_hist);
|
||||||
relatePlacements(storey, product);
|
relatePlacements(storey, product);
|
||||||
}
|
}
|
||||||
return storey;
|
return storey;
|
||||||
|
|||||||
Reference in New Issue
Block a user