Skip to content

Scientific geometry

Gaussian splats ​

scenes/gaussian-splats
const splats = plot.uploadSplats(helix(count));
plot.showSplats(splats);
plot.frameScene();
return { readout: `${count.toLocaleString("en-GB")} splats` };

Calls

3 in the code above, in the order it makes them

plot.uploadSplats(set: SplatSet): SplatsHandle

Upload a Gaussian splat set and return a handle naming it.

plot.showSplats(handle: SplatsHandle): void

Draw the splat set handle names.

plot.frameScene(): void

Point the camera at the middle of everything uploaded, far enough back to see it.

Call after uploading. A scene measured in grid cells or in millimetres is nowhere near where a camera starts, and without this the first thing a caller sees is an empty canvas.