Polyline.divide
- Polyline.divide(num_segments)[source]
Divide a polyline in equal segments.
- Parameters:
- num_segmentsint
- Returns:
- list
list[
compas.geometry.Point
]
Examples
>>> polyline = Polyline([(0, 0, 0), (1, 1, 0), (2, 3, 0), (4, 4, 0), (5, 2, 0)]) >>> len(polyline.divide(3)) 4