MeshReader

Trait MeshReader 

Source
pub trait MeshReader: Send + Sync {
    // Required methods
    fn read_mesh(&self, path: &Path) -> Result<TriangleMesh>;
    fn can_read(&self, path: &Path) -> bool;
    fn format_name(&self) -> &'static str;
}
Expand description

Trait for reading meshes from files

Required Methods§

Source

fn read_mesh(&self, path: &Path) -> Result<TriangleMesh>

Read a mesh from the given path

Source

fn can_read(&self, path: &Path) -> bool

Check if this reader can handle the given file by examining its header

Source

fn format_name(&self) -> &'static str

Get the format name this reader handles

Implementors§