pub struct Mesh {
pub positions: Vec<[f32; 3]>,
pub indices: Vec<u32>,
pub color: Rgb,
pub wireframe: bool,
pub opacity: f32,
pub on_top: bool,
pub colors: Vec<Rgb>,
}Expand description
A mesh drawn in the scene, never picked.
Fields§
§positions: Vec<[f32; 3]>§indices: Vec<u32>§color: Rgb§wireframe: bool§opacity: f32§on_top: boolOver everything, whatever is in front of it.
colors: Vec<Rgb>A colour per position, multiplying color (leave that white to
show them as they are). Ignored unless it holds one per position.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mesh
impl<'de> Deserialize<'de> for Mesh
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl Forget for Mesh
impl Freeze for Mesh
impl Move for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin for Mesh
impl UnwindSafe for Mesh
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