Add option to set object origin to the center of mass
authorSergej Reich <sergej.reich@googlemail.com>
Sat, 20 Oct 2012 16:48:54 +0000 (16:48 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Sat, 20 Oct 2012 16:48:54 +0000 (16:48 +0000)
commit0a590aadf5655175f73af5b59e61acfb0fe0b144
tree337b9aa216d33a1c4f84d1d5d3364ca927309753
parentd20128bbbcae252e9b39af14246dfcc6534dc0d6
Add option to set object origin to the center of mass

This uses the weighted average of polygon centroids based on area
It work well in most cases but will be slightly wrong when polygons have
many vertices.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/mesh.c
source/blender/editors/object/object_transform.c