Polyline.divide_by_length
- Polyline.divide_by_length(length, strict=True, tol=1e-06)[source]
Splits a polyline in segments of a given length.
- Parameters
length (float) – Length of the segments.
strict (bool, optional) – If False, the remainder segment will be added even if it is smaller than the desired length
tol (float, optional) – Floating point error tolerance.
- Returns
list[
Point
]
Notes
The points of the new polyline are constrained to the segments of the old polyline. However, since the old points are not part of the new set of points, the geometry of the polyline will change.