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

Function exportReconstructionBinary

src/parsers/writers.ts:124–138  ·  view source on GitHub ↗
(
  reconstruction: Reconstruction,
  wasmReconstruction?: WasmReconstructionWrapper | null
)

Source from the content-addressed store, hash-verified

122 * @param wasmReconstruction - Optional WASM wrapper (used to build points3D if not in reconstruction)
123 */
124export function exportReconstructionBinary(
125 reconstruction: Reconstruction,
126 wasmReconstruction?: WasmReconstructionWrapper | null
127): void {
128 const points3D = getPoints3DForExport(reconstruction, wasmReconstruction);
129 const { rigs, frames } = reconstruction.rigData ?? {};
130
131 exportReconstructionBinaryFiles({
132 writeCameras: () => writeCamerasBinary(reconstruction.cameras),
133 writeImages: () => writeImagesBinary(reconstruction.images, wasmReconstruction),
134 writePoints3D: () => writePoints3DBinary(points3D),
135 writeRigs: rigs && rigs.size > 0 ? () => writeRigsBinary(rigs) : undefined,
136 writeFrames: frames && frames.size > 0 ? () => writeFramesBinary(frames) : undefined,
137 });
138}
139
140/**
141 * Export point cloud as PLY file.

Callers

nothing calls this directly

Calls 7

getPoints3DForExportFunction · 0.90
writeCamerasBinaryFunction · 0.90
writeImagesBinaryFunction · 0.90
writePoints3DBinaryFunction · 0.90
writeRigsBinaryFunction · 0.90
writeFramesBinaryFunction · 0.90

Tested by

no test coverage detected