Skip to content

Commit 0f993b3

Browse files
FragColoraothms
authored andcommitted
Fix generation of IfcOpenHouse.ifc which doesn't have its ground representation. See IfcOpenShell#200
1 parent f71ee35 commit 0f993b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/examples/IfcOpenHouse.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ int main() {
269269
for (IfcSchema::IfcRepresentation::list::it it = ground_reps->begin(); it != ground_reps->end(); ++it) {
270270
(*it)->setContextOfItems(file.getRepresentationContext("Model"));
271271
}
272+
file.addEntity(ground_representation);
272273
file.setSurfaceColour(ground_representation, 0.15, 0.25, 0.05);
273274

274275
// According to the Ifc2x3 schema an IfcWallStandardCase needs to have an IfcMaterialLayerSet

0 commit comments

Comments
 (0)