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.
- Trim
Span - What a trim keeps.
Functions§
- append
- Appends
subpathtopath. - point_
at_ length - The point
distancealongsubpath(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 part by its own length, returning each piece with its part index. - trim_
together - Keeps
spanofpartslaid 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.