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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Vertex> for Vertex
[src]
impl Serialize for Vertex
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,