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 Meshwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<[f32; 3]>: Freeze,
PhantomData<[u32; 3]>: Freeze,
impl Move for Mesh
impl RefUnwindSafe for Mesh
impl Send for Meshwhere
RawVecInner: Send,
impl Sync for Meshwhere
RawVecInner: Sync,
impl Unpin for Mesh
impl UnsafeUnpin for Meshwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<[f32; 3]>: UnsafeUnpin,
PhantomData<[u32; 3]>: UnsafeUnpin,
impl UnwindSafe for Meshwhere
RawVecInner: UnwindSafe,
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