Struct gemini_engine::elements3d::view3d::Face
source · 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: ColCharThe desired appearance of the face when rendered
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexFace
impl RefUnwindSafe for IndexFace
impl Send for IndexFace
impl Sync for IndexFace
impl Unpin for IndexFace
impl UnwindSafe for IndexFace
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