This is slop coded.
Pure-Rust decoder for the OpenCTM mesh format. Implements the MG1 method (lossless, LZMA-compressed) — the method Bentley ContextCapture uses in 3mx output. Validated byte-identical against the reference C library.
let mesh = openctm::decode(&std::fs::read("mesh.ctm")?)?;
// mesh.positions, mesh.indices, mesh.uvs, mesh.normalsRAW and MG2 are not implemented.
Apache-2.0.