pub struct MeshDef {
pub vertices: Vec<Vec3>,
pub indices: Vec<i32>,
pub material_indices: Vec<u8>,
pub weld_tolerance: f32,
pub weld_vertices: bool,
pub use_median_split: bool,
pub identify_edges: bool,
}Expand description
Data used to create a re-usable collision mesh. (b3MeshDef)
Fields§
§vertices: Vec<Vec3>Triangle vertices.
indices: Vec<i32>Triangle vertex indices (3 per triangle).
material_indices: Vec<u8>Triangle material index (1 per triangle). Empty = all zero.
weld_tolerance: f32Tolerance for vertex welding in length units.
weld_vertices: boolOptionally weld nearby vertices.
use_median_split: boolUse median split instead of SAH (good for grid-like meshes).
identify_edges: boolCompute triangle adjacency information using shared edges.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshDef
impl RefUnwindSafe for MeshDef
impl Send for MeshDef
impl Sync for MeshDef
impl Unpin for MeshDef
impl UnsafeUnpin for MeshDef
impl UnwindSafe for MeshDef
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