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§
Sourcefn read_mesh(&self, path: &Path) -> Result<TriangleMesh>
fn read_mesh(&self, path: &Path) -> Result<TriangleMesh>
Read a mesh from the given path
Sourcefn can_read(&self, path: &Path) -> bool
fn can_read(&self, path: &Path) -> bool
Check if this reader can handle the given file by examining its header
Sourcefn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name this reader handles