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

Function toAB

src/parsers/transform_export.test.ts:24–26  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

22describe.skipIf(!hasSparseBinaryFixture(BIN))('transform flows through export', () => {
23 it('45° Y rotation changes exported qvecs and point xyz', () => {
24 const toAB = (path: string): ArrayBuffer => {
25 return copyBytesToArrayBuffer(readFileSync(path));
26 };
27
28 const cameras = parseCamerasBinary(toAB(resolve(BIN, 'cameras.bin')));
29 const images = parseImagesBinary(toAB(resolve(BIN, 'images.bin')));

Callers 1

Calls 1

copyBytesToArrayBufferFunction · 0.90

Tested by

no test coverage detected