pub struct Mesh {
pub extensions: Option<Mesh>,
pub extras: Extras,
pub name: Option<String>,
pub primitives: Vec<Primitive>,
pub weights: Option<Vec<f32>>,
}
Expand description
A set of primitives to be rendered.
A node can contain one or more meshes and its transform places the meshes in the scene.
Fields§
§extensions: Option<Mesh>
Extension specific data.
extras: Extras
Optional application specific data.
name: Option<String>
Optional user-defined name for this object.
primitives: Vec<Primitive>
Defines the geometry to be renderered with a material.
weights: Option<Vec<f32>>
Defines the weights to be applied to the morph targets.
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
Auto Trait Implementations§
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin 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