pub struct Face {
pub a: usize,
pub b: usize,
pub c: usize,
pub normal: Vector3,
pub material_index: usize,
}Expand description
intersection.face — the triangle a mesh ray hit.
Fields§
§a: usizeVertex indices of the triangle.
b: usizeThe triangle’s second vertex index.
c: usizeThe triangle’s third vertex index.
normal: Vector3Triangle.getNormal() of the (morphed, skinned) triangle, in object
space.
material_index: usizeface.materialIndex. Always 0 in the port: see
Mesh’s raycast, which has a single material.
Trait Implementations§
impl Copy for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Freeze for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
impl UnwindSafe for Face
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