interface VoxelGrid {
    data: Float32Array;
    max: [number, number, number];
    min: [number, number, number];
    name?: string;
    resolution: [number, number, number];
    unit?: string;
    valueRange?: [number, number];
}

Properties

data: Float32Array

Cell values, row-major over (x, y, z). Length = nx · ny · nz.

max: [number, number, number]

World-space maximum corner of the volume bounding box.

min: [number, number, number]

World-space minimum corner of the volume bounding box.

name?: string

Human-readable name for the field. Used by the panel header.

resolution: [number, number, number]

Cell counts along the (x, y, z) axes.

unit?: string

Display unit for data. Used by the panel's legend and stat readouts. Pure metadata — the renderer is unit-agnostic. Examples: "°C", "ppm", "dB", "m/s", "lux".

valueRange?: [number, number]

Min / max of the colormap range. Falls back to the data's actual min / max when not specified. Lock this when you want multiple overlays to be visually comparable.