( reconstruction: Reconstruction, wasmReconstruction?: WasmReconstructionWrapper | null )
| 99 | * @param wasmReconstruction - Optional WASM wrapper (used to build points3D if not in reconstruction) |
| 100 | */ |
| 101 | export function exportReconstructionText( |
| 102 | reconstruction: Reconstruction, |
| 103 | wasmReconstruction?: WasmReconstructionWrapper | null |
| 104 | ): void { |
| 105 | const points3D = getPoints3DForExport(reconstruction, wasmReconstruction); |
| 106 | const { rigs, frames } = reconstruction.rigData ?? {}; |
| 107 | |
| 108 | exportReconstructionTextFiles({ |
| 109 | writeCameras: () => writeCamerasText(reconstruction.cameras), |
| 110 | writeImages: () => writeImagesText(reconstruction.images, wasmReconstruction), |
| 111 | writePoints3D: () => writePoints3DText(points3D), |
| 112 | writeRigs: rigs && rigs.size > 0 ? () => writeRigsText(rigs) : undefined, |
| 113 | writeFrames: frames && frames.size > 0 ? () => writeFramesText(frames) : undefined, |
| 114 | }); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Export full reconstruction to COLMAP binary format. |
nothing calls this directly
no test coverage detected