Struct gltf_json::Mesh [−][src]
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
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 UnwindSafe for Mesh
Blanket Implementations
Mutably borrows from an owned value. Read more