Function graphics::triangulation::with_polygon_tri_list

source ยท
pub fn with_polygon_tri_list<F>(m: Matrix2d, polygon: Polygon<'_>, f: F)
where F: FnMut(&[[f32; 2]]),
Expand description

Splits polygon into convex segments. Create a buffer that fits into L1 cache with 1KB overhead.

See stream_polygon_tri_list docs for detailed explanation.