pub struct Mesh { /* private fields */ }
Available on crate feature
mdl
only.Expand description
A single mesh within a model.
Implementations
sourceimpl Mesh
impl Mesh
sourcepub fn material(&self) -> Result<String, Error>
pub fn material(&self) -> Result<String, Error>
Path to the material associated with this mesh.
sourcepub fn indices(&self) -> Result<Vec<u16>, Error>
pub fn indices(&self) -> Result<Vec<u16>, Error>
Indices of vertices within the mesh. Vertices are laid out in a triangle list topology.
sourcepub fn attributes(&self) -> Result<Vec<VertexAttribute>, Error>
pub fn attributes(&self) -> Result<Vec<VertexAttribute>, Error>
Get the vertex attributes for all vertices in the mesh.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more