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.
- Trim
Span - What a trim keeps.
Functions§
- append
- Appends
subpathtopath. - point_
at_ length - The point
distancealongsubpath(in its own space; lengths throughmeasure), clamped to its ends. - subpath_
length - The length of
subpaththroughmeasure. - subpaths
- The subpaths of
path, each closed one with its closing segment. - trim_
individually - Keeps
spanof each ofpartsby its own length, each piece with the index of its part. - trim_
together - Keeps
spanofpartstogether: 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.