pub struct MeshData {Show 21 fields
pub version: u64,
pub byte_count: i32,
pub hash: u32,
pub bounds: Aabb,
pub surface_area: f32,
pub tree_height: i32,
pub degenerate_count: i32,
pub node_offset: i32,
pub node_count: i32,
pub vertex_offset: i32,
pub vertex_count: i32,
pub triangle_offset: i32,
pub triangle_count: i32,
pub material_offset: i32,
pub material_count: i32,
pub flags_offset: i32,
pub nodes: Vec<MeshNode>,
pub vertices: Vec<Vec3>,
pub triangles: Vec<MeshTriangle>,
pub material_indices: Vec<u8>,
pub flags: Vec<u8>,
}Expand description
Sorted triangle collision bounding volume hierarchy. (b3MeshData)
Maps to C’s header + trailing blob. Offsets and byte_count match C so
MeshData::to_bytes reproduces the contiguous layout used by b3Hash.
Fields§
§version: u64§byte_count: i32§hash: u32§bounds: Aabb§surface_area: f32§tree_height: i32§degenerate_count: i32§node_offset: i32§node_count: i32§vertex_offset: i32§vertex_count: i32§triangle_offset: i32§triangle_count: i32§material_offset: i32§material_count: i32§flags_offset: i32§nodes: Vec<MeshNode>§vertices: Vec<Vec3>§triangles: Vec<MeshTriangle>§material_indices: Vec<u8>§flags: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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