pub struct Triangle {
pub vertices: [Vertex; 3],
pub material_index: u32,
}Expand description
Triangle, defined by three vertices and a material that it uses.
Fields§
§vertices: [Vertex; 3]The vertices of the triangle. Named a, b, c respectively
in many parts of the code
material_index: u32The material used by this triangle. This is an index into the scene’s materials
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Triangle
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnsafeUnpin for Triangle
impl UnwindSafe for Triangle
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