MCPcopy
hub / github.com/sparkjsdev/spark / EmptySplatSource

Class EmptySplatSource

src/SplatMesh.ts:198–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198export class EmptySplatSource implements SplatSource {
199 fetchDyno = new Dyno({
200 inTypes: {},
201 outTypes: { gsplat: Gsplat },
202 globals: () => [defineGsplat],
203 statements: ({ outputs }) =>
204 unindentLines(`
205 ${outputs.gsplat}.flags = 0u;
206 return;
207 `),
208 }).outputs.gsplat;
209
210 prepareFetchSplat() {}
211 dispose() {}
212
213 getNumSplats() {
214 return 0;
215 }
216 hasRgbDir() {
217 return false;
218 }
219 getNumSh() {
220 return 0;
221 }
222 setMaxSh(maxSh: number) {}
223
224 fetchSplat({ index }: { index: DynoVal<"int"> }): DynoVal<typeof Gsplat> {
225 return this.fetchDyno;
226 }
227
228 forEachSplat() {}
229}
230
231export class SplatMesh extends SplatGenerator {
232 // A Promise<SplatMesh> you can await to ensure fetching, parsing,

Callers

nothing calls this directly

Calls 1

unindentLinesFunction · 0.90

Tested by

no test coverage detected