pub struct SkinDeformSystem { /* private fields */ }Expand description
Collection of SkinDeformPatterns with bulk evaluation.
Implementations§
Source§impl SkinDeformSystem
impl SkinDeformSystem
pub fn new() -> Self
pub fn add_pattern(&mut self, p: SkinDeformPattern)
Sourcepub fn evaluate_all(&self, params: &ParamState) -> MorphMap
pub fn evaluate_all(&self, params: &ParamState) -> MorphMap
For each pattern, compute the average driver value from params,
call evaluate(t), and blend results additively (clamped to [0,1]).
pub fn pattern_count(&self) -> usize
pub fn find_pattern(&self, name: &str) -> Option<&SkinDeformPattern>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkinDeformSystem
impl RefUnwindSafe for SkinDeformSystem
impl Send for SkinDeformSystem
impl Sync for SkinDeformSystem
impl Unpin for SkinDeformSystem
impl UnsafeUnpin for SkinDeformSystem
impl UnwindSafe for SkinDeformSystem
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more