Struct blender_mesh::Vertex [−][src]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
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][+]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[+]
SS: SubsetOf<SP>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,