Skip to content

Zoom and pan

Pinch and touch ​

scenes/pinch-and-touch
plot.showSplats(plot.uploadSplats(helix(60_000)));
plot.frameScene();

Calls

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

plot.showSplats(handle: SplatsHandle): void

Draw the splat set handle names.

plot.uploadSplats(set: SplatSet): SplatsHandle

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

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.