diff --git a/src/ifcparse/IfcHierarchyHelper.cpp b/src/ifcparse/IfcHierarchyHelper.cpp index c10f6817a8..4f41a232e0 100644 --- a/src/ifcparse/IfcHierarchyHelper.cpp +++ b/src/ifcparse/IfcHierarchyHelper.cpp @@ -307,7 +307,7 @@ void IfcHierarchyHelper::addBox(IfcSchema::IfcShapeRepresentation* rep, double w points.push_back(std::pair(w/2, -d/2)); points.push_back(std::pair(w/2, d/2)); points.push_back(std::pair(-w/2, d/2)); - points.push_back(*points.begin()); + // The call to addExtrudedPolyline() closes the polyline addExtrudedPolyline(rep, points, h, place, place2, dir, context); } }