Skip to content

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 ​

readonly indices: Uint32Array

Defined in: packages/core/src/geometry/triangulate.ts:13

Triangle vertex indices into vertices (groups of 3).


vertices ​

readonly vertices: Float32Array

Defined in: packages/core/src/geometry/triangulate.ts:11

Interleaved vertex coordinates [x0,y0,...].

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)