From 1f68d9d5bcfda6ce6b7ff6e86733faf835247242 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 18 Apr 2018 11:57:38 +0200 Subject: [PATCH] TColgp_SequenceOfPnt::Upper() does not exist on all versions of occt --- src/ifcgeom/IfcGeomWires.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomWires.cpp b/src/ifcgeom/IfcGeomWires.cpp index 82435e29f2..e1e2ed4781 100644 --- a/src/ifcgeom/IfcGeomWires.cpp +++ b/src/ifcgeom/IfcGeomWires.cpp @@ -400,7 +400,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu const double eps = getValue(GV_PRECISION) * 10; const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps; if (closed_by_proximity) { - polygon.Remove(polygon.Upper()); + // tfk: note 1-based + polygon.Remove(polygon.Length()); } // Remove points that are too close to one another