| Crates.io | rutile |
| lib.rs | rutile |
| version | 0.1.1 |
| created_at | 2021-01-03 19:25:45.547437+00 |
| updated_at | 2021-01-03 19:42:12.867168+00 |
| description | Minimal gmsh parser |
| homepage | |
| repository | https://github.com/pacce/rutile.git |
| max_upload_size | |
| id | 331162 |
| size | 27,841 |
A minimal gmsh msh file parser implemented using Rust.
This parser implements version 1 and 2 msh file format specification.
The version 2, however, is incomplete, and parses only the most relevant fields.
use {rutile::Mesh, std::fs::File};
fn main() -> std::io::Result<()> {
let mut f = File::open("sample.msh")?;
let mesh = Mesh::decode(&mut f)?;
println!("{:?}", mesh);
Ok(())
}