Blender Git Commit Log

Git Commits -> Revision 58d7153

Revision 58d7153 by Bastien Montagne (master)
January 9, 2015, 17:35 (GMT)
BKE: Add 'mesh remap' code.

This is the (big!) core of mesh transfer data, it defines a set of structures
to represent a mapping of mesh elements (verts, edges, polys of loops) between
two arbitrary meshes, and code to compute such mappings.

No similarity is required between source and destination meshes (though results
when using complete different meshes are rather unlikely to be useful!).

This code is not bound to data transfer, it is defined to be as generic as possible,
and easy to reuse or extend as needs arise.

Several methods of mapping generation are defined for each element type,
we probably will have to adjust that in future (remove useless ones, add
new ones...).

For loops, you can also define islands (for UVs e.g.) so that loops of a same
destination polygon do not 'spread' across several source islands.

Heavily reviewed and enhanced by Campbell, thanks a lot!

Commit Details:

Full Hash: 58d7153c6c4d52005cde1547592efaced1507d9c
Parent Commit: b996871
Lines Changed: +2554, -45

2 Added Paths:

/source/blender/blenkernel/BKE_mesh_remap.h (+171, -0) (View)
/source/blender/blenkernel/intern/mesh_remap.c (+1986, -0) (View)

3 Modified Paths:

/source/blender/blenkernel/BKE_mesh_mapping.h (+61, -2) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/mesh_mapping.c (+334, -43) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021