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

Function getCachedFrustumTexture

src/hooks/useFrustumTexture.ts:69–75  ·  view source on GitHub ↗
(imageName: string)

Source from the content-addressed store, hash-verified

67}
68
69function getCachedFrustumTexture(imageName: string): THREE.Texture | null {
70 const existing = getActiveFrustumTexture(activeTextures, imageName);
71 if (existing) return existing;
72
73 const cachedBitmap = getCachedFrustumBitmap(bitmapCache, imageName);
74 return cachedBitmap ? createTextureFromBitmap(cachedBitmap, imageName) : null;
75}
76
77async function loadFrustumBitmapFromFile(
78 imageFile: File,

Callers

nothing calls this directly

Calls 3

getActiveFrustumTextureFunction · 0.90
getCachedFrustumBitmapFunction · 0.90
createTextureFromBitmapFunction · 0.85

Tested by

no test coverage detected