Skip to content

Popoch39/LasConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lasConverter

A simple tool to convert LAS files (.las) to a custom binary format.

Dependencies

This project uses the following Rust crate:

Building

To build the project, use the following command:

cargo build --release

The executable will be located in target/release/lasConverter.

Usage

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

Future Improvements

  • Accept command-line arguments for the input and output file paths
  • Implement the RGBPointStruct as well

Output Format

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 float
  • y: 32-bit float
  • z: 32-bit float

The points are written to the file sequentially. ( TODO make threads xd )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages