From 843f08c0a6d9b33d0bdfb7a3c6bd8634a2bd1e25 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 9ce9bcc13f..259bd9c1fa 100644 --- a/src/ifcparse/IfcHierarchyHelper.cpp +++ b/src/ifcparse/IfcHierarchyHelper.cpp @@ -296,7 +296,7 @@ void IfcHierarchyHelper::addBox(Ifc2x3::IfcShapeRepresentation* rep, double w, d 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); } }