bbox.ofFlat
The smallest axis-aligned box containing every finite point of a flat position array.
Usage
BBox.ofFlat(flat: ArrayLike<number>): BBoxParameters
flatArrayLike<number>Positions packed as
[x0, y0, z0, x1, …](aFloat64Array, a plain array or the raw tier’s output). Required. In model.
Returns
The box of the points; BBox.empty when there are none or none is finite.
Example
BBox.ofFlat([0, 0, 0, 2, NaN, 0, 1, 3, -1]) // → { min: { x: 0, y: 0, z: -1 }, max: { x: 1, y: 3, z: 0 } }