From 0f993b32f48aca1009196d9f5a3342b432c02fc5 Mon Sep 17 00:00:00 2001 From: Alexandre Lemire Date: Fri, 7 Apr 2017 12:20:48 +0200 Subject: [PATCH] Fix generation of IfcOpenHouse.ifc which doesn't have its ground representation. See #200 --- src/examples/IfcOpenHouse.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/examples/IfcOpenHouse.cpp b/src/examples/IfcOpenHouse.cpp index 88adc574b6..bd5142ab41 100644 --- a/src/examples/IfcOpenHouse.cpp +++ b/src/examples/IfcOpenHouse.cpp @@ -269,6 +269,7 @@ int main() { for (IfcSchema::IfcRepresentation::list::it it = ground_reps->begin(); it != ground_reps->end(); ++it) { (*it)->setContextOfItems(file.getRepresentationContext("Model")); } + file.addEntity(ground_representation); file.setSurfaceColour(ground_representation, 0.15, 0.25, 0.05); // According to the Ifc2x3 schema an IfcWallStandardCase needs to have an IfcMaterialLayerSet