Skip to main content

Module trim

Module trim 

Source
Expand description

Trim paths: keeping a span of geometry’s length.

Structs§

Measured
One subpath and the transform its lengths are measured through.
Subpath
A subpath as its segments, closed ones including the segment back to the start.
TrimSpan
What a trim keeps.

Functions§

append
Appends subpath to path.
point_at_length
The point distance along subpath (in its own space; lengths through measure), clamped to its ends.
subpath_length
The length of subpath through measure.
subpaths
The subpaths of path, each closed one with its closing segment.
trim_individually
Keeps span of each of parts by its own length, each piece with the index of its part.
trim_together
Keeps span of parts together: of their lengths laid end to end in order. A span that wraps past the end continues from the start; around a single closed subpath the two pieces join into one. Each piece comes with the index of the part it was cut from.