| Crates.io | mesh_rs |
| lib.rs | mesh_rs |
| version | 1.0.4 |
| created_at | 2025-12-08 14:34:55.446914+00 |
| updated_at | 2025-12-17 07:46:36.527683+00 |
| description | A Rust library for 3D mesh processing and analysis. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1973630 |
| size | 69,154 |
mesh_rs is a powerful and versatile command-line interface (CLI) tool designed for analyzing and manipulating 3D mesh files. Built with Rust, it offers high-performance processing for 3D printing enthusiasts and professionals who need to inspect or modify their model files directly from the terminal.
Currently, mesh_rs supports the following 3D file formats:
Ensure you have Rust and Cargo installed on your system.
# Clone the repository
git clone git@github.com:VinukaThejana/mesh_rs.git
# Navigate to the project directory
cd mesh_rs
# Build the project
cargo build --release
# (Optional) Install globally
cargo install --path .
The general syntax is:
mesh_rs <INPUT_FILE> <COMMAND> [ARGS]
View comprehensive details including file format, triangle count, diagonal size, and volume.
mesh_rs model.stl stats
Get the volume of the mesh in cubic units (usually mm³).
mesh_rs model.obj volume
Measure the diagonal length of the mesh's bounding box.
mesh_rs input.stl diagonal
Get the total number of triangular faces.
mesh_rs input.obj triangles
Resize a mesh so its bounding box diagonal matches a specific length.
# Scale 'input.stl' to have a diagonal of 100 units
mesh_rs input.stl scale 100
# Scale and save to a specific output file
mesh_rs input.obj scale 150 --output scaled_model.obj
We aim to make mesh_rs the go-to CLI for 3D model analysis. Future plans include: