MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / hasColmapFiles

Function hasColmapFiles

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

Source from the content-addressed store, hash-verified

75 * Check if the file map contains COLMAP files
76 */
77export function hasColmapFiles(files: Map<string, File>): boolean {
78 for (const [, file] of files) {
79 const name = file.name.toLowerCase();
80 if (
81 name === 'cameras.bin' || name === 'cameras.txt' ||
82 name === 'images.bin' || name === 'images.txt' ||
83 name === 'points3d.bin' || name === 'points3d.txt'
84 ) {
85 return true;
86 }
87 }
88 return false;
89}
90
91interface LocalSplatCandidate extends SplatCandidate {
92 file: File;

Callers 2

processFileDropzoneFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected