Polyline.point_at
- Polyline.point_at(t, snap=False)[source]
Point on the polyline at a specific normalized parameter.
- Parameters:
- tfloat
The parameter value.
- snapbool, 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_at(0.75) Point(x=1.000, y=0.500, z=0.000)