splitAt

fun ShapeContour.splitAt(segmentIndex: Double, segmentT: Double): List<ShapeContour>(source)

Splits the current ShapeContour into multiple contours at the specified segment index and position within the segment.

Return

a list of ShapeContour objects resulting from the split

Parameters

segmentIndex

the index of the segment where the split should occur

segmentT

the normalized position (0.0 to 1.0) within the segment where the split should occur


fun Path3D.splitAt(segmentIndex: Double, segmentT: Double): List<Path3D>(source)


fun ShapeContour.splitAt(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<ShapeContour>(source)

Splits the current ShapeContour at specified normalized parameter values and returns sub-contours.

Return

a list of ShapeContour objects representing the segments of the original contour split at the specified parameter values. If the contour is empty or ascendingTs is empty, returns the original contour as a single item in the list.

Parameters

ascendingTs

a list of normalized parameter values (from 0.0 to 1.0) where the contour will be split. The values must be in ascending order.

weldEpsilon

a small tolerance value to merge closely adjacent parameter values; defaults to 1E-6.


fun Path3D.splitAt(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<Path3D>(source)

Splits the current Path3D into multiple subpaths at specified normalized parameter values.

Return

a list of Path3D objects representing the segments of the original path split at the specified parameter values. If the path is empty or the ascendingTs list is empty, the method returns a list containing the original path.

Parameters

ascendingTs

a list of normalized parameter values (ranging from 0.0 to 1.0) indicating where the path should be split. The list must be in ascending order.

weldEpsilon

a small tolerance value used to merge closely adjacent parameter values. The default value is 1E-6.


fun Segment2D.splitAt(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<Segment2D>(source)

Splits the current Segment2D instance at specified parameter values.

Return

a list of Segment2D parts obtained by splitting the original segment at the given parameter values.

Parameters

ascendingTs

a list of parameter values in ascending order where the segment should be split. These should be in the range 0.0, 1.0.

weldEpsilon

a tolerance value used to merge parameter values that are too close to each other. Defaults to 1E-6.


fun Segment3D.splitAt(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<Segment3D>(source)

Splits the current 3D segment into multiple sub-segments at the specified parameter t values.

Return

a list of sub-segments of type Segment3D resulting from the splits

Parameters

ascendingTs

a list of t values between 0.0 and 1.0, in ascending order, where the segment should be split

weldEpsilon

a small tolerance value to merge very close t values, default is 1E-6