Blender Git Loki

Git Commits -> Revision 5e81313

Revision 5e81313 by Ton Roosendaal (master)
October 22, 2005, 14:05 (GMT)
New: X-axis mirror weightpainting.

- Set the button in Paint Panel, Edit buttons context
- It assumes the mesh to be near-perfectly mirrored. Current threshold is
set to 0.0001 (maximum difference allowed).
In order to evaluate proper mirroring, a new option will be added in
Mesh editmode later.
- When the flipped group doesn't exist yet, it creates the group
- Of course this doesn't work for mirror modifier!

New: Select/activate flipped bone or vertex group
- Press SHIFT+F in PoseMode or WeightPaint mode to get the flipped bone.
Is especially to see while painting if the mirror copying works OK.

New: "Apply Envelope to VertexGroup" uses X-mirror option too.

Todo; check on mirror vertex painting, and mirror Mesh editmode....

The implementation is based on a 8x8x8 Octree, where vertex locations are
stored. Vertices on the threshold boundary of an Octree node are filled in
the neighbour nodes as well, ensuring that the lookup works with threshold.
The current size of the Octree gives good speedup, even for 128k vertices
it only needs 256 lookup cycles per checked vertex.
Same code could be used for the bevel tool for example.

src/meshtools.c:
int mesh_octree_table(Object *ob, float *co, char mode)

- mode 's' or 'e' is "start octree" or "end octree"
- mode 'u' is "use", it then returns an index nr of the found vertex.
(return -1 if not found)

Commit Details:

Full Hash: 5e8131309e43c5638548d622c1df806ca9e63c4d
SVN Revision: 5540
Parent Commit: ed7fb48
Lines Changed: +361, -30

11 Modified Paths:

/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+1, -0) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+5, -2) (Diff)
/source/blender/blenkernel/intern/blender.c (+2, -0) (Diff)
/source/blender/include/BIF_meshtools.h (+4, -0) (Diff)
/source/blender/include/BIF_poseobject.h (+1, -0) (Diff)
/source/blender/include/blendef.h (+2, -1) (Diff)
/source/blender/src/buttons_editing.c (+4, -3) (Diff)
/source/blender/src/meshtools.c (+183, -0) (Diff)
/source/blender/src/poseobject.c (+78, -4) (Diff)
/source/blender/src/space.c (+10, -4) (Diff)
/source/blender/src/vpaint.c (+71, -16) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021