Geometry input consumed by paintHeatMap.

interface PaintHeatMapGeometry {
    aabb: AABB3;
    indices: IntArrayParam;
    positionsCompressed: IntArrayParam;
    scalars: ArrayLike<number>;
    uvs?: ArrayLike<number>;
}

Properties

aabb: AABB3

AABB the compressed positions decompress against.

indices: IntArrayParam

Triangle indices. Length must be a multiple of 3.

positionsCompressed: IntArrayParam

Quantised vertex positions (Uint16, range [0, 65535] within aabb).

scalars: ArrayLike<number>

Per-vertex scalar field. Length must equal positionsCompressed.length / 3.

uvs?: ArrayLike<number>

Optional pre-baked per-vertex UVs in [0, 1]²2 × vertexCount floats. When supplied, the painter uses these instead of running its planar projection from positions. Useful for axis-aligned shapes (boxes, cylinders aligned with worldUp) whose faces would collapse to lines under planar projection — supply a per-face unwrap (cube-map style) and every face gets its own non- degenerate UV rectangle.