pub struct Face {
pub v_indices: Vec<usize>,
pub fill_char: ColChar,
}
Expand description
A Face
contains indices to a mesh’s collection of vertices and a ColChar
to fill the face. Indices should be arranged in a clockwise order, as if they appear counter-clockwise when rendering they will not be rendered at all (this is how gemini-engine handles backface culling and maximises performance)
Fields§
§v_indices: Vec<usize>
The vertex indices of the face
fill_char: ColChar
The desired appearance of the face when rendered
Implementations§
Trait Implementations§
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