pub struct SkinnedMesh { /* private fields */ }Implementations§
Source§impl SkinnedMesh
impl SkinnedMesh
Sourcepub fn new(
mesh: &Mesh,
weights: &[SkinWeights],
joints: usize,
) -> Result<SkinnedMesh, &'static str>
pub fn new( mesh: &Mesh, weights: &[SkinWeights], joints: usize, ) -> Result<SkinnedMesh, &'static str>
One influence record per source vertex; indices and all influences are validated before registration. Weights normalize once, using f64 sums.
pub fn resident(&self) -> &ResidentMesh
pub fn joint_count(&self) -> usize
Trait Implementations§
Source§impl Clone for SkinnedMesh
impl Clone for SkinnedMesh
Source§fn clone(&self) -> SkinnedMesh
fn clone(&self) -> SkinnedMesh
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SkinnedMesh
impl RefUnwindSafe for SkinnedMesh
impl !Send for SkinnedMesh
impl !Sync for SkinnedMesh
impl Unpin for SkinnedMesh
impl UnwindSafe for SkinnedMesh
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