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

Function findLargestPlyFile

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

Source from the content-addressed store, hash-verified

153 * Kept for callers that specifically need raw PLY selection.
154 */
155export function findLargestPlyFile(files: Map<string, File>): File | undefined {
156 return getLocalSplatCandidates(files)
157 .filter((candidate) => candidate.path.toLowerCase().endsWith('.ply'))
158 .reduce<LocalSplatCandidate | null>(
159 (largest, candidate) => !largest || candidate.size > largest.size ? candidate : largest,
160 null
161 )?.file;
162}
163
164/**
165 * Check if the dropped files contain image files

Callers 1

Calls 1

getLocalSplatCandidatesFunction · 0.85

Tested by

no test coverage detected