Skip to main content

Module fill

Module fill 

Source

Structs§

Prepared
the rings ready for the records: their points (relative to origin), oriented; triangles as (ring, point) pairs; per triangle and per edge the edges near it (near: numbered ring after ring, nearest first)

Constants§

EDGE_NEAR
the most edges besides its two neighbours an edge’s record names
TRI_NEAR
the most edges a triangle’s record names (the fragment shader computes its pixels from them)

Functions§

areas
(tests) the triangles’ area against the rings’ even-odd area, both in units squared
earcut
triangles of the polygon data (the outer ring, then the holes from starts on) as indices into it
prepare
the rings (absolute f64 points, implicitly closed): cleaned, nested, oriented, triangulated