Polyline.point
- Polyline.point(t, snap=False)[source]
Point on the polyline at a specific normalized parameter.
- Parameters
t (float) – The parameter value.
snap (bool, optional) – If True, return the closest polyline point.
- Returns
compas.geometry.Point
– The point on the polyline.
Examples
>>> polyline = Polyline([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0]]) >>> polyline.point(0.75) Point(1.000, 0.500, 0.000)