removeSegment method
- required int segmentIndex,
Remove a segment at the specified index from the part.
If the segment connected to adjacent segments, then after a segment is removed a gap can be left behind.
Parameters:
segmentIndex
— Zero-based index of the segment.