imlet 0.2.0

A lightweight engine for implicit modeling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub fn main() {
    env_logger::init();
    #[cfg(feature = "viewer")]
    {
        let mesh: imlet::types::geometry::Mesh<f32> =
            imlet::utils::io::parse_obj_file("assets/geometry/bunny.obj", false, false).unwrap();
        let settings = imlet::viewer::DisplaySettings {
            show_bounds: true,
            show_mesh_edges: true,
            mesh_material: imlet::viewer::Material::Normal,
        };
        imlet::viewer::show_mesh_with_settings(&mesh, Some(mesh.bounds()), &settings);
    }
    #[cfg(not(feature = "viewer"))]
    {
        log::error!("Enable the viewer feature to see the model.");
    }
}