Blender Git Loki

Git Commits -> Revision 10305de

Revision 10305de by Sergej Reich (master)
February 14, 2013, 17:35 (GMT)
Fix "Origin to Center of Mass" not working well with ngons

Now we do simple triangulation and calculate signed area of triangles to
account for concave polygons.

This only works correct for planar polygons but gives better results
overall.

Commit Details:

Full Hash: 10305de3ac27ec7d247120a62d5ef7508e7a165e
SVN Revision: 54560
Parent Commit: e3944f5
Lines Changed: +49, -3

3 Modified Paths:

/source/blender/blenkernel/intern/mesh.c (+32, -3) (Diff)
/source/blender/blenlib/BLI_math_geom.h (+1, -0) (Diff)
/source/blender/blenlib/intern/math_geom.c (+16, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021