Skip to content

Commit 1f68d9d

Browse files
committed
TColgp_SequenceOfPnt::Upper() does not exist on all versions of occt
1 parent 120ff2f commit 1f68d9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ifcgeom/IfcGeomWires.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu
400400
const double eps = getValue(GV_PRECISION) * 10;
401401
const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps;
402402
if (closed_by_proximity) {
403-
polygon.Remove(polygon.Upper());
403+
// tfk: note 1-based
404+
polygon.Remove(polygon.Length());
404405
}
405406

406407
// Remove points that are too close to one another

0 commit comments

Comments
 (0)