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 segments, including the closing segment when closed.
TrimSpan
What a trim keeps.

Functions§

append
Appends subpath to path.
point_at_length
The point distance along subpath (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 part by its own length, returning each piece with its part index.
trim_together
Keeps span of parts laid end to end, returning each piece with its part index. A wrapping span continues from the start, and on a single closed subpath the two pieces join.