pub struct Mesh {
pub vertices: Vec<Vertex>,
pub indices: Option<Indices>,
pub mode: RenderMode,
pub material_index: Option<usize>,
pub name: Option<String>,
}Fields§
§vertices: Vec<Vertex>All the Vertices the Mesh has.
indices: Option<Indices>All the Indices the Mesh has.
mode: RenderModeThe Render Mode that should be used to Render the Mesh
material_index: Option<usize>The index from the Vec Materials Vec in Model3D
§Examples
let material = model.materials[mesh.material_index];name: Option<String>Name of the Mesh.
Some File Formats do not support Mesh names, In this case this will be None
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