Expand description
Path representation.
Paths are stored as a verb stream with a parallel point buffer rather than as an enum-per-segment vector. Tessellation walks both linearly, and keeping points contiguous means the walk touches one cache line per few segments instead of chasing a pointer per segment.
Structs§
- Path
- A path: a verb stream plus the points those verbs consume.
- Path
Builder - Accumulates verbs and points into a
Path. - Rect
- An axis-aligned bounding box.
Enums§
- Convexity
- Whether a subpath is convex, which selects the fill strategy.
- Fill
Rule - How overlapping subpaths combine when filling.
- Verb
- A path segment operator.
Constants§
- MAX_
COORDINATE - The largest coordinate magnitude the tessellator will accept.
Functions§
- polygon_
convexity - Classify a polygon by the consistency of its turn directions.