Disable polyline point removal

This commit is contained in:
Thomas Krijnen
2020-01-29 17:29:33 +01:00
parent b91a34c8c6
commit a805496895
+4 -2
View File
@@ -1277,12 +1277,14 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcPolyline* inst) {
const double eps = precision_ * 10;
const bool closed_by_proximity = polygon.size() >= 3 && (polygon.front().components - polygon.back().components).norm() < eps;
// @todo this removes the end point, since it's identical to the beginning.
if (closed_by_proximity) {
polygon.resize(polygon.size() - 1);
// polygon.resize(polygon.size() - 1);
}
// Remove points that are too close to one another
remove_duplicate_points_from_loop(polygon, closed_by_proximity, eps);
// remove_duplicate_points_from_loop(polygon, closed_by_proximity, eps);
if (polygon.size() < 2) {
return false;