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

Function compareSplatCandidates

src/utils/splatFilePolicy.ts:29–33  ·  view source on GitHub ↗
(a: SplatCandidate, b: SplatCandidate)

Source from the content-addressed store, hash-verified

27}
28
29export function compareSplatCandidates(a: SplatCandidate, b: SplatCandidate): number {
30 const rankDelta = getSplatCandidateRank(a) - getSplatCandidateRank(b);
31 if (rankDelta !== 0) return rankDelta;
32 return a.size - b.size;
33}
34
35export function getPreferredSplatCandidate<TCandidate extends SplatCandidate>(
36 current: TCandidate | null | undefined,

Calls 1

getSplatCandidateRankFunction · 0.85

Tested by

no test coverage detected