diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-13 19:00:08 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-13 19:05:38 +0300 |
commit | dd44754c5ff3b2f200f5bb256ac9868eb43a65f6 (patch) | |
tree | f0abdbd24bf46d1260f0a71d588329c11809206a /source/blender/blenkernel/BKE_mesh_remap.h | |
parent | e93b969ac99e0205278580edae87892cc5eda60c (diff) |
Data Transfer: Add an option to 'auto-transform' destination mesh so that it matches best the source one.
This allows to match and transfer data between two meshes with similar shape but complete arbitrary different transform.
Note that the result will be best if the meshes (more precisely, their vertices) are exact copies of each other.
Otherwise, method used can only perform an approximated best match, which means you'll likely get better
results if you 'visually' make them match in 3D space (and use 'Object Transform') instead.
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_remap.h')
-rw-r--r-- | source/blender/blenkernel/BKE_mesh_remap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_remap.h b/source/blender/blenkernel/BKE_mesh_remap.h index c6d8da16565..5c77ab8a94e 100644 --- a/source/blender/blenkernel/BKE_mesh_remap.h +++ b/source/blender/blenkernel/BKE_mesh_remap.h @@ -140,6 +140,14 @@ enum { MREMAP_MODE_TOPOLOGY = MREMAP_MODE_VERT | MREMAP_MODE_EDGE | MREMAP_MODE_LOOP | MREMAP_MODE_POLY, }; +float BKE_mesh_remap_calc_difference_from_dm( + const struct SpaceTransform *space_transform, + const struct MVert *verts_dst, const int numverts_dst, struct DerivedMesh *dm_src); + +void BKE_mesh_remap_find_best_match_from_dm( + const struct MVert *verts_dst, const int numverts_dst, struct DerivedMesh *dm_src, + struct SpaceTransform *r_space_transform); + /* TODO add mesh2mesh versions (we'll need mesh versions of bvhtree funcs too, though!). */ void BKE_mesh_remap_calc_verts_from_dm( |