interface BuildVolumeSlicePlaneOptions {
    axis?: SliceAxis;
    colormap?: ColormapStops;
    filter?: "linear" | "nearest";
    id?: string;
    opacity?: number;
    position?: number;
    range?: [number, number];
    resolution?: [number, number];
    zOffset?: number;
}

Properties

axis?: SliceAxis

Which axis the slice is perpendicular to. Default "z" — horizontal slice, the most common HVAC / thermal study form.

colormap?: ColormapStops

Colormap stops. Default viridis — perceptually uniform, the scientifically defensible choice for unbiased magnitude reading.

filter?: "linear" | "nearest"

Texel filtering. Default "linear" — smooth interpolation between samples. "nearest" reads as a stepped voxel block, useful for low-resolution diagnostic views.

id?: string

SceneModel id. Default "volumeSlicePlane".

opacity?: number

Opacity for the slice. Default 0.85 — the building behind still reads faintly through.

position?: number

World-space position along axis where the slice sits. Defaults to the midpoint of the grid along the chosen axis.

range?: [number, number]

Value range mapped to the colormap. Default grid.valueRange, or the data-driven min/max when that's unset. Lock this when comparing multiple overlays.

resolution?: [number, number]

Sampling resolution on the slice plane, in cells along the two in-plane axes. Default 80 × 80 — smooth enough to read without a noticeable bake cost. Higher resolution costs O(nu · nv) sample lookups per rebuild.

zOffset?: number

Offset (in world units) along the slice's normal axis, to lift the slice off any coincident floor / wall surface and avoid Z-fighting. Default 0.02.