pub struct Vertex {
pub position: Vec3,
pub normal: Option<Vec3>,
pub color: Option<Color>,
}Expand description
Mesh vertex. The crate keeps optional color/normal because PLY/OBJ can carry them, while STL only stores per-facet normals.
Fields§
§position: Vec3§normal: Option<Vec3>§color: Option<Color>Implementations§
Trait Implementations§
impl StructuralPartialEq for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnsafeUnpin for Vertex
impl UnwindSafe for Vertex
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