remove_segments#
- Polyline.remove_segments(assignment)#
Remove a segment from an existing polyline by segment id.
You must enter the segment id or the list of the segment ids you want to remove.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.DeletePolylinePoint
Examples
>>> P = modeler.create_polyline([[0, 1, 2], [0, 2, 3], [2, 1, 4]]) >>> P.remove_segments(assignment=0)