pub trait MeshWriter: Send + Sync {
// Required methods
fn write_mesh(&self, mesh: &TriangleMesh, path: &Path) -> Result<()>;
fn format_name(&self) -> &'static str;
}
Expand description
Trait for writing meshes to files
Required Methods§
Sourcefn write_mesh(&self, mesh: &TriangleMesh, path: &Path) -> Result<()>
fn write_mesh(&self, mesh: &TriangleMesh, path: &Path) -> Result<()>
Write a mesh to the given path
Sourcefn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name this writer handles