pub struct MeshData {
pub vertices: Vec<MeshVertex>,
pub indices: Vec<u32>,
pub bounds: Aabb,
pub bounds_dirty: bool,
}Expand description
Indexed triangle-list mesh snapshot.
bounds and bounds_dirty mirror the OA donor fields. Constructed values
from mesh::create_* have up-to-date bounds; directly assembled MeshData
values start with bounds_dirty = true and bounds = Aabb::default().
Fields§
§vertices: Vec<MeshVertex>§indices: Vec<u32>§bounds: AabbCached tight AABB; valid when bounds_dirty is false.
bounds_dirty: boolSet to true when vertices have changed since the last compute_bounds.
Trait Implementations§
impl StructuralPartialEq for MeshData
Auto Trait Implementations§
impl Forget for MeshData
impl Freeze for MeshData
impl Move for MeshData
impl RefUnwindSafe for MeshData
impl Send for MeshData
impl Sync for MeshData
impl Unpin for MeshData
impl UnsafeUnpin for MeshData
impl UnwindSafe for MeshData
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