Struct gltf::mesh::Mesh
[−]
[src]
pub struct Mesh<'a> { /* fields omitted */ }
A set of primitives to be rendered. A node can contain one or more meshes and its transform places the meshes in the scene.
Methods
impl<'a> Mesh<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Mesh) -> Self
Constructs a Mesh
.
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Mesh
Returns the internal JSON item.
fn extras(&self) -> &Extras
Optional application specific data.
fn primitives(&'a self) -> Primitives<'a>
Defines the geometry to be renderered with a material.
fn weights(&self) -> Option<&[f32]>
Defines the weights to be applied to the morph targets.
Trait Implementations
impl<'a> Clone for Mesh<'a>
[src]
fn clone(&self) -> Mesh<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more