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

Function getLocalSplatCandidates

src/utils/fileClassification.ts:99–118  ·  view source on GitHub ↗
(files: Map<string, File>)

Source from the content-addressed store, hash-verified

97}
98
99function getLocalSplatCandidates(files: Map<string, File>): LocalSplatCandidate[] {
100 const seen = new Set<File>();
101 const candidates: LocalSplatCandidate[] = [];
102
103 for (const [path, file] of files) {
104 const candidatePath = normalizeSplatSourcePath(isSplatFilePath(path) ? path : file.name);
105 if (!isSplatFilePath(candidatePath) || seen.has(file)) {
106 continue;
107 }
108
109 seen.add(file);
110 candidates.push({
111 path: candidatePath,
112 size: file.size,
113 file,
114 });
115 }
116
117 return candidates;
118}
119
120/**
121 * Find all splat files in a scanned dataset, sorted by default preference:

Callers 3

findSplatFileSourcesFunction · 0.85
findPreferredSplatFileFunction · 0.85
findLargestPlyFileFunction · 0.85

Calls 3

isSplatFilePathFunction · 0.90
normalizeSplatSourcePathFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected