mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
TColgp_SequenceOfPnt::Upper() does not exist on all versions of occt
This commit is contained in:
@@ -400,7 +400,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu
|
|||||||
const double eps = getValue(GV_PRECISION) * 10;
|
const double eps = getValue(GV_PRECISION) * 10;
|
||||||
const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps;
|
const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps;
|
||||||
if (closed_by_proximity) {
|
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
|
// Remove points that are too close to one another
|
||||||
|
|||||||
Reference in New Issue
Block a user