pub struct McmMesh {
pub vertices: Vec<Vec3>,
pub normals: Vec<Vec3>,
pub indices: Vec<u32>,
}Expand description
Output mesh from the marching cubes algorithm.
Fields§
§vertices: Vec<Vec3>Interpolated vertex positions in grid-index space.
normals: Vec<Vec3>Per-vertex normals (accumulated from adjacent face normals, then normalized).
indices: Vec<u32>Triangle indices (every 3 consecutive indices form a triangle).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McmMesh
impl RefUnwindSafe for McmMesh
impl Send for McmMesh
impl Sync for McmMesh
impl Unpin for McmMesh
impl UnsafeUnpin for McmMesh
impl UnwindSafe for McmMesh
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