pub struct Mesh {
pub meta: Option<Meta>,
pub vertices: Vec<[f32; 3]>,
pub triangles: Vec<[u32; 3]>,
}Expand description
A triangle mesh, as a mesh chunk keeps it.
Fields§
§meta: Option<Meta>The name and comment, such as an STL header, or None for a mesh
without metadata.
vertices: Vec<[f32; 3]>The vertex positions: x, y and z.
triangles: Vec<[u32; 3]>The triangles: three indices into vertices each, first corner first.
Trait Implementations§
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl Forget for Mesh
impl Freeze for Mesh
impl Move for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin 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