segment_range_split_uniform


Description:

[ Version ( since = "2.2" ) ]
public bool segment_range_split_uniform (int start_segment, int end_segment, int split_parts)

Splits each segment in the segment range uniformly

Splits each segment in the segment range uniformly into to the number of parts given. Returns an error when a segment index is out of range, or gradient is not editable.

Parameters:

this

The gradient.

start_segment

Index of the first segment to operate on.

end_segment

Index of the last segment to operate on. If negative, the range will extend to the end segment.

split_parts

The number of uniform divisions to split each segment to.

Returns:

TRUE on success.