serde-ply
Flexible and fast PLY parser and writer using serde. While PLY is an older format, it's still used in various geometry processing applications and research. PLY files act as simple key-value tables, and can be decoded in a streaming manner.
Installation
Add this to your Cargo.toml:
[]
= "0.1"
= { = "1.0", = ["derive"] }
Features
- Supports serializing and deserializing PLY files
- Supports full PLY specification including list properties
- Supports binary and ASCII formats
- Supports deserializing PLY files in chunks, for streaming data processing
- High performance (1 GB/s+ deserialization)
Quick Start
use ;
// Read PLY file
let mesh: Mesh = from_reader?;
// Write PLY file
let bytes = to_bytes?;
Examples
Please see the examples/ folder for usage examples.
Contributions
Contributions are welcome! Please open an issue or submit a pull request. Please run the tests to check if everything still works, and cargo bench to check if performance is still acceptable.