diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-28 16:33:17 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-28 16:33:17 +0300 |
commit | c4933cccfa74836ff88a6904abfaf52c8e0cde87 (patch) | |
tree | 87004e9a5c1004c7c67c9c6b80d19a670ddd4d08 /source/blender/editors/armature/meshlaplacian.h | |
parent | b83751d8c2a3fd85e6e8e301ee1f986d684b03d5 (diff) |
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
Diffstat (limited to 'source/blender/editors/armature/meshlaplacian.h')
-rw-r--r-- | source/blender/editors/armature/meshlaplacian.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |