pub struct Mesh { /* private fields */ }
Available on crate feature
mdl
only.Expand description
A single mesh within a model.
Implementations§
Source§impl 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 Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more