/// Morphs the vertices based on the computed weights.
Morphs the vertices based on the computed weights.
Morphs the vertices based on the computed weights .
fn on_morph(mesh: &mut Mesh, weights: &HashMap<VertexID, Vec3>, factor: f64)
{
    for (vertex_id, weight) in weights.iter() {
        mesh.move_vertex_by(*vertex_id,weight * factor);
    }
}
fn on_morph ( mesh : & mut Mesh , weights : & HashMap < VertexID , Vec3 > , factor : f64 ) { for ( vertex_id , weight ) in weights . iter ( ) { mesh . move_vertex_by ( * vertex_id , weight * factor ) ; } }
Morphs the vertices based on the computed weights.
Morphs the vertices based on the computed weights .
mesh
&mut Mesh
weights
&HashMap<VertexID, Vec3>
factor
f64