@@ -127,12 +127,12 @@ int main(int argc, char** argv) {
127127 , IfcSchema::IfcOpeningElementTypeEnum::IfcOpeningElementType_OPENING
128128#endif
129129 );
130- file.AddEntity (west_opening);
130+ file.addEntity (west_opening);
131131
132132 // Relate the opening element to the wall.
133133 IfcSchema::IfcRelVoidsElement* void_element = new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(),
134134 null, null, south_wall, west_opening);
135- file.AddEntity (void_element);
135+ file.addEntity (void_element);
136136
137137 // Now create an additional opening
138138 IfcSchema::IfcOpeningElement* south_opening = new IfcSchema::IfcOpeningElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(),
@@ -142,8 +142,8 @@ int main(int argc, char** argv) {
142142 , IfcSchema::IfcOpeningElementTypeEnum::IfcOpeningElementType_OPENING
143143#endif
144144 );
145- file.AddEntity (south_opening);
146- file.AddEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, south_wall, south_opening));
145+ file.addEntity (south_opening);
146+ file.addEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, south_wall, south_opening));
147147
148148 // Create a roof element that will consist of two slabs:
149149 IfcSchema::IfcRoof* roof = new IfcSchema::IfcRoof (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), S (" Roof" ), null, null,
@@ -177,7 +177,7 @@ int main(int argc, char** argv) {
177177 roof_parts->push (north_roof_part);
178178 IfcSchema::IfcRelDecomposes* roof_decomposition = new IfcSchema::IfcRelAggregates (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(),
179179 null, null, roof, roof_parts);
180- file.AddEntity (roof_decomposition);
180+ file.addEntity (roof_decomposition);
181181
182182 file.addBuildingProduct (south_roof_part);
183183 file.addBuildingProduct (north_roof_part);
@@ -247,8 +247,8 @@ int main(int argc, char** argv) {
247247 , IfcSchema::IfcOpeningElementTypeEnum::IfcOpeningElementType_OPENING
248248#endif
249249 );
250- file.AddEntity (west_opening_copy);
251- file.AddEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, west_wall, west_opening_copy));
250+ file.addEntity (west_opening_copy);
251+ file.addEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, west_wall, west_opening_copy));
252252
253253 // Up until now we have only used simple extrusions for the creation of the geometry. For the
254254 // ground mesh of the IfcSite we will use a Nurbs surface created in Open Cascade. The surface
@@ -319,11 +319,11 @@ int main(int argc, char** argv) {
319319#endif
320320 layer_usage);
321321
322- file.AddEntity (material);
323- file.AddEntity (layer);
324- file.AddEntity (layer_set);
325- file.AddEntity (layer_usage);
326- file.AddEntity (associates_material);
322+ file.addEntity (material);
323+ file.addEntity (layer);
324+ file.addEntity (layer_set);
325+ file.addEntity (layer_usage);
326+ file.addEntity (associates_material);
327327
328328 // In addition, another common way to represent geometry in IFC files is to use extrusions of
329329 // planar areas bounded by a polygon.
@@ -351,8 +351,8 @@ int main(int argc, char** argv) {
351351 , IfcSchema::IfcOpeningElementTypeEnum::IfcOpeningElementType_OPENING
352352#endif
353353 );
354- file.AddEntity (door_opening);
355- file.AddEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, east_wall, door_opening));
354+ file.addEntity (door_opening);
355+ file.addEntity (new IfcSchema::IfcRelVoidsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, east_wall, door_opening));
356356
357357 // A single shape representation can contain multiple representiation items. This way a product
358358 // can be a composition of multiple solids. The following door will be composed of four boxes
@@ -379,7 +379,7 @@ int main(int argc, char** argv) {
379379 file.addBox (door_body, 860 , 30 , 2120 );
380380 file.addBuildingProduct (door);
381381 file.setSurfaceColour (door->Representation (), 0.9 , 0.9 , 0.9 );
382- file.AddEntity (new IfcSchema::IfcRelFillsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, door_opening, door));
382+ file.addEntity (new IfcSchema::IfcRelFillsElement (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(), null, null, door_opening, door));
383383
384384 // Surface styles are assigned to representation items, hence there is no real limitation to
385385 // assign different colours within the same representation. However, some viewers have
@@ -462,7 +462,7 @@ int main(int argc, char** argv) {
462462 , IfcSchema::IfcMemberTypeEnum::IfcMemberType_MULLION
463463#endif
464464 );
465- file.AddEntity (frame_part);
465+ file.addEntity (frame_part);
466466 window_parts->push (frame_part);
467467 file.relatePlacements (window, frame_part);
468468 }
@@ -474,7 +474,7 @@ int main(int argc, char** argv) {
474474 , IfcSchema::IfcPlateTypeEnum::IfcPlateType_SHEET
475475#endif
476476 );
477- file.AddEntity (glass_part);
477+ file.addEntity (glass_part);
478478 window_parts->push (glass_part);
479479 file.relatePlacements (window, glass_part);
480480 file.setSurfaceColour (glass_part->Representation (), 0.6 , 0.7 , 0.75 , 0.1 );
@@ -483,7 +483,7 @@ int main(int argc, char** argv) {
483483 // tools will consider the window a single entity that can be selected as a whole.
484484 IfcSchema::IfcRelDecomposes* decomposition = new IfcSchema::IfcRelAggregates (guid (), file.getSingle <IfcSchema::IfcOwnerHistory>(),
485485 null, null, window, window_parts);
486- file.AddEntity (decomposition);
486+ file.addEntity (decomposition);
487487 }
488488
489489 // Finally create a file stream for our output and write the IFC file to it.
0 commit comments