PrivatenumPrivatedimensionsPrivatecentersPrivateamplitudesPrivatecholeskyPrivatecolorsSet the number of splats.
Set the number of spatial dimensions.
Provide explicit centers. Layout: numSplats * dimensions floats.
Generate random centers within range.
Uniform amplitudes (required attribute).
Varying amplitudes.
Set isotropic Gaussian covariance via a single sigma. The Cholesky factor for an isotropic Gaussian is sigma * I, so the lower-triangular packing is sigma on the diagonals and zero elsewhere.
Packing (ndim=3): [L00, L10, L11, L20, L21, L22] →
[sigma, 0, sigma, 0, 0, sigma].
Provide explicit Cholesky factors (numSplats * ndim*(ndim+1)/2 floats).
Per-splat RGB colors. Random when no values are passed.
Optionalcolors: number[] | Float32Array<ArrayBufferLike>Build the test fixture. centers is auto-populated with random values
if unset; amplitudes defaults to 1.0; choleskyFactors defaults to
isotropic sigma=0.1 if unset (all three are required attributes).
Builder for gsplats test data.
Mirrors PointsBuilder. Required attributes are
centers,amplitudes, andcholeskyFactors. The Cholesky packing follows the lower-triangular layout used by the rest of the viewer: ndim*(ndim+1)/2 floats per splat.Example