remove_segments#

Polyline.remove_segments(assignment)[source]#

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:
assignmentint or List of int

One or more edge IDs within the total number of edges of the polyline.

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)