pub enum Polygon {
P(Vec<usize>),
PT(Vec<(usize, usize)>),
PN(Vec<(usize, usize)>),
PTN(Vec<(usize, usize, usize)>),
}
Expand description
The Polygon
type.
Variants§
P(Vec<usize>)
A polygon which contains only the position data of each vertex.
PT(Vec<(usize, usize)>)
A polygon which contains both position and texture coordinate data of each vertex.
PN(Vec<(usize, usize)>)
A polygon which contains both position and normal data of each vertex.
PTN(Vec<(usize, usize, usize)>)
A polygon which contains all position, texture coordinate and normal data of each vertex.
Trait Implementations§
impl Eq for Polygon
impl StructuralPartialEq for Polygon
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
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