Struct blender_mesh::Vertex[][src]

pub struct Vertex { /* fields omitted */ }

A vertex within a mesh.

You’ll typically buffer the Vertex’s data onto the GPU interleaved into a single buffer, and then index into that buffer using the indices from SingleIndexedVertexAttributes.

Implementations

impl Vertex[src]

pub fn position(&self) -> [f32; 3][src]

The model space position of this Vertex

pub fn normal(&self) -> Option<[f32; 3]>[src]

The surface normal for the face that this Vertex belongs to

pub fn face_tangent(&self) -> Option<[f32; 3]>[src]

The face tangent for the face that this Vertex belongs to

pub fn uv(&self) -> Option<[f32; 2]>[src]

The UV coordinates for this Vertex

pub fn bones(&self) -> Option<[BoneInfluence; 4]>[src]

The bones that influence this Vertex.

Currently a maximum of 4 bones is supported for no other reason than it being uncommon to need more than that.

If this doesn’t meet your needs pleas open an issue.

If there are fewer than 4 influencing bones then the extra fake bones in this array will have weights of zero.

Trait Implementations

impl Clone for Vertex[src]

impl Copy for Vertex[src]

impl Debug for Vertex[src]

impl Default for Vertex[src]

impl<'de> Deserialize<'de> for Vertex[src]

impl PartialEq<Vertex> for Vertex[src]

impl Serialize for Vertex[src]

impl StructuralPartialEq for Vertex[src]

Auto Trait Implementations

impl RefUnwindSafe for Vertex

impl Send for Vertex

impl Sync for Vertex

impl Unpin for Vertex

impl UnwindSafe for Vertex

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,