A simple tool to convert LAS files (.las) to a custom binary format.
This project uses the following Rust crate:
To build the project, use the following command:
cargo build --releaseThe executable will be located in target/release/lasConverter.
Currently, the input and output file paths are hardcoded in src/main.rs.
To convert a file, modify the main function in src/main.rs to specify your input and output files:
fn main() {
let converter = LasConverter::new();
converter.convert_to_bin("./path/to/your/file.las", "./path/to/your/output.bin", false);
}Then, run the executable:
./target/release/lasConverter- Accept command-line arguments for the input and output file paths
- Implement the RGBPointStruct as well
The output binary file consists of a series of 3D points. Each point is represented by a Point3D struct with the following format:
x: 32-bit floaty: 32-bit floatz: 32-bit float
The points are written to the file sequentially. ( TODO make threads xd )