pub struct MorphTarget { /* private fields */ }Expand description
The per-vertex deltas of one blend shape target (expression morph).
Position deltas are mandatory; normal and tangent deltas are optional (the runtime falls back to the base attributes when absent).
Implementations§
Source§impl MorphTarget
impl MorphTarget
Sourcepub fn position_deltas(&self) -> &[[f32; 3]]
pub fn position_deltas(&self) -> &[[f32; 3]]
Returns the position delta for every base vertex.
Sourcepub fn normal_deltas(&self) -> Option<&[[f32; 3]]>
pub fn normal_deltas(&self) -> Option<&[[f32; 3]]>
Returns optional normal deltas aligned with the base vertices.
Sourcepub fn tangent_deltas(&self) -> Option<&[[f32; 3]]>
pub fn tangent_deltas(&self) -> Option<&[[f32; 3]]>
Returns optional tangent deltas aligned with the base vertices.
Trait Implementations§
Source§impl Clone for MorphTarget
impl Clone for MorphTarget
Auto Trait Implementations§
impl Freeze for MorphTarget
impl RefUnwindSafe for MorphTarget
impl Send for MorphTarget
impl Sync for MorphTarget
impl Unpin for MorphTarget
impl UnsafeUnpin for MorphTarget
impl UnwindSafe for MorphTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more