pub struct Face {
pub vertices: Vec<usize>,
pub color: Option<Color>,
}
Expand description
Represents a face of a mesh. A face contains a list of vertex indicies and optionally a color.
Fields§
§vertices: Vec<usize>
The list of vertex indicies that make up the face.
color: Option<Color>
The color of the face.
Implementations§
Trait Implementations§
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 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