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

Properties

data: Float32Array

Vector samples, row-major over (x, y, z), three floats per cell [vx, vy, vz]. Length = nx · ny · nz · 3.

magnitudeRange?: [number, number]

Min / max magnitude for colour-mapping. Falls back to a data-driven scan when unset. Lock this for visual comparison across multiple runs.

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. Used by the panel header.

resolution: [number, number, number]

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

unit?: string

Display unit for the magnitude. Examples: "m/s", "Pa·s⁻¹".