pub struct TargetValidator;Expand description
Validates morph target data for common issues.
Implementations§
Source§impl TargetValidator
impl TargetValidator
Sourcepub fn validate(
deltas: &[[f64; 3]],
vertex_count: usize,
) -> Result<Vec<ValidationWarning>>
pub fn validate( deltas: &[[f64; 3]], vertex_count: usize, ) -> Result<Vec<ValidationWarning>>
Run a suite of validation checks on deltas.
Returns a list of warnings (empty = no issues found).
Sourcepub fn check_symmetry(
deltas: &[[f64; 3]],
positions: &[[f64; 3]],
tolerance: f64,
) -> SymmetryReport
pub fn check_symmetry( deltas: &[[f64; 3]], positions: &[[f64; 3]], tolerance: f64, ) -> SymmetryReport
Check symmetry of deltas relative to vertex positions across the X axis.
For each vertex on the positive X side, finds the closest vertex on the negative side and compares their deltas (with X component negated).
Auto Trait Implementations§
impl Freeze for TargetValidator
impl RefUnwindSafe for TargetValidator
impl Send for TargetValidator
impl Sync for TargetValidator
impl Unpin for TargetValidator
impl UnsafeUnpin for TargetValidator
impl UnwindSafe for TargetValidator
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