MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / makeCloud

Function makeCloud

e2e/webgpu-render.spec.ts:296–311  ·  view source on GitHub ↗
(
        position: [number, number, number],
        scale = 0.12
      )

Source from the content-addressed store, hash-verified

294 const width = 96;
295 const height = 64;
296 const makeCloud = (
297 position: [number, number, number],
298 scale = 0.12
299 ): BrowserGaussianCloud => ({
300 count: 1,
301 positions: new Float32Array(position),
302 scales: new Float32Array([scale, scale, scale]),
303 rotations: new Float32Array([1, 0, 0, 0]),
304 opacities: new Float32Array([0.95]),
305 sh0: new Float32Array([
306 (1.0 - 0.5) / shC0,
307 (0.1 - 0.5) / shC0,
308 (0.1 - 0.5) / shC0,
309 ]),
310 shDegree: 0,
311 });
312 const makeCamera = (params: number[]) => ({
313 cameraId: 1,
314 modelId: 1,

Callers 1

renderCaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected