Struct gltf::mesh::Primitive [−][src]
pub struct Primitive<'a> { /* fields omitted */ }
Expand description
Geometry to be rendered with the given material.
Implementations
Returns the bounds of the POSITION
vertex attribute.
Return the accessor with the given semantic.
Returns the accessor containing the primitive indices, if provided.
pub fn attributes(&self) -> Attributes<'a>ⓘNotable traits for Attributes<'a>impl<'a> Iterator for Attributes<'a> type Item = Attribute<'a>;
pub fn attributes(&self) -> Attributes<'a>ⓘNotable traits for Attributes<'a>impl<'a> Iterator for Attributes<'a> type Item = Attribute<'a>;
Notable traits for Attributes<'a>
impl<'a> Iterator for Attributes<'a> type Item = Attribute<'a>;
Returns an Iterator
that visits the vertex attributes.
Returns the material to apply to this primitive when rendering
pub fn morph_targets(&self) -> MorphTargets<'a>ⓘNotable traits for MorphTargets<'a>impl<'a> Iterator for MorphTargets<'a> type Item = MorphTarget<'a>;
pub fn morph_targets(&self) -> MorphTargets<'a>ⓘNotable traits for MorphTargets<'a>impl<'a> Iterator for MorphTargets<'a> type Item = MorphTarget<'a>;
Notable traits for MorphTargets<'a>
impl<'a> Iterator for MorphTargets<'a> type Item = MorphTarget<'a>;
Returns an Iterator
that visits the morph targets of the primitive.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Primitive<'a>
impl<'a> UnwindSafe for Primitive<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more