From c4933cccfa74836ff88a6904abfaf52c8e0cde87 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 28 Nov 2009 13:33:17 +0000 Subject: Mesh Deform Modifier * Now support a Surface mode next to the existing Volume mode. This binds the mesh to the cage mesh surface rather than it's volume. * Implemented reusing the bone heat weighting code. * Advantage is that it works for cage meshes that are not volumes and that binding is much faster. * Weak point is that disconnected components of a mesh are not guaranteed to stick together (same problem exists with bone heat weighting). * Bind weights could still be compressed better to use less memory. Example file: http://download.blender.org/ftp/incoming/cloth_mdef_surface.blend --- source/blender/editors/armature/meshlaplacian.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/armature/meshlaplacian.h') diff --git a/source/blender/editors/armature/meshlaplacian.h b/source/blender/editors/armature/meshlaplacian.h index 1ee01561cd4..215a3579cab 100644 --- a/source/blender/editors/armature/meshlaplacian.h +++ b/source/blender/editors/armature/meshlaplacian.h @@ -78,7 +78,8 @@ void rigid_deform_end(int cancel); /* Harmonic Coordinates */ -void harmonic_coordinates_bind(struct Scene *scene, struct MeshDeformModifierData *mmd, +void mesh_deform_bind(struct Scene *scene, struct DerivedMesh *dm, + struct MeshDeformModifierData *mmd, float *vertexcos, int totvert, float cagemat[][4]); #endif -- cgit v1.2.3