Intermact API Reference / @intermact/core / Triangulation
Interface: Triangulation
Defined in: packages/core/src/geometry/triangulate.ts:9
Polygon triangulation (design.md §5.2). Uses earcut for concave / holed shapes. Supports multiple disjoint fill groups (one per glyph) so holes such as the inner loop of "0" stay with their outer ring instead of pairing globally.
Properties
indices
readonlyindices:Uint32Array
Defined in: packages/core/src/geometry/triangulate.ts:13
Triangle vertex indices into vertices (groups of 3).
vertices
readonlyvertices:Float32Array
Defined in: packages/core/src/geometry/triangulate.ts:11
Interleaved vertex coordinates [x0,y0,...].