2 releases

0.1.1 Jan 3, 2021
0.1.0 Jan 3, 2021

#3 in #gmsh

MIT license

27KB
791 lines

Rutile (TiO2)

A minimal gmsh msh file parser implemented using Rust. This parser implements version 1 and 2 msh file format specification.

  • msh version 1 is available here.
  • msh version 2 is available here.

The version 2, however, is incomplete, and parses only the most relevant fields.

Sample usage

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(())
}

Dependencies

~1MB
~17K SLoC