From aa1ff9024191b7b6266bc3837acea70348e9e2b3 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 28 Jun 2014 12:39:40 +0000 Subject: [PATCH] Remove a duplicated cartesian point from the closed polyline created by the addBox() function as seen in IfcOpenHouse. Thanks Bernd. --- src/ifcparse/IfcHierarchyHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }