pub struct SubMesh {
pub name: String,
pub node: i32,
pub rotation: [f32; 4],
pub translation: [f32; 3],
pub bounds_min: [f32; 3],
pub bounds_max: [f32; 3],
pub vertices: Vec<[f32; 3]>,
pub normals: Vec<[f32; 3]>,
pub triangles: Vec<Triangle>,
pub edges: Vec<[u16; 2]>,
}Expand description
A part of a picking mesh.
Fields§
§name: StringThe name.
node: i32Parent submesh index, used by Runtime AddMesh’s bind hierarchy (root is -1).
rotation: [f32; 4]The rotation, a quaternion (x, y, z, w).
translation: [f32; 3]The translation.
bounds_min: [f32; 3]The lowest corner of its bounds.
bounds_max: [f32; 3]The highest corner of its bounds.
vertices: Vec<[f32; 3]>The vertices.
normals: Vec<[f32; 3]>The normals.
triangles: Vec<Triangle>The triangles.
edges: Vec<[u16; 2]>The edges: pairs of vertex indices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubMesh
impl RefUnwindSafe for SubMesh
impl Send for SubMesh
impl Sync for SubMesh
impl Unpin for SubMesh
impl UnsafeUnpin for SubMesh
impl UnwindSafe for SubMesh
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