Skip to content

Commit 5181778

Browse files
committed
fix for point input as tuple
1 parent 93cddf4 commit 5181778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compas/geometry/curves/polyline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from compas.geometry import allclose
88
from compas.geometry import transform_points
9-
from compas.geometry import is_point_on_line
9+
from compas.geometry import is_point_on_line, is_point_on_polyline
1010
from compas.geometry import Point
1111
from compas.geometry import Line
1212
from compas.geometry import Frame
@@ -274,7 +274,7 @@ def parameter_at(self, point, tol=1e-6):
274274
0.5
275275
276276
"""
277-
if not point.on_polyline(self):
277+
if not is_point_on_polyline(point, self, tol):
278278
raise Exception("{} not found!".format(point))
279279
dx = 0
280280
for line in self.lines:

0 commit comments

Comments
 (0)