( reconstruction: Reconstruction, wasmReconstruction?: WasmReconstructionWrapper | null )
| 122 | * @param wasmReconstruction - Optional WASM wrapper (used to build points3D if not in reconstruction) |
| 123 | */ |
| 124 | export 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. |
nothing calls this directly
no test coverage detected