Blender Git Commit Log
Git Commits -> Revision eb10402
Revision eb10402 by Antonis Ryakiotakis (master) March 25, 2012, 19:02 (GMT) |
Fix #30638 and part of #30646. Problem was that area calculation of polygons was done relative to the xy plane, and with a very obscure (to me at least) algorithm. That meant that vertical ngons would get 0 area. Commented initial code in case this is a strange optimization case that someone wants to use and used a cleaner algorithm: first project vertices to the ngon plane, defined by the normal of the ngon and the center (mean) of the ngon vertices. This will only be exact for convex and mostly planar ngons, still it is much better than the previous code. Also fixed memory leak when stretch display was on. |
Commit Details:
Full Hash: eb104023650f3e67c80f889df61060acc2c09123
SVN Revision: 45141
Parent Commit: 337be23
Lines Changed: +57, -13
5 Modified Paths:
/source/blender/blenlib/BLI_math_vector.h (+2, -0) (Diff)
/source/blender/blenlib/intern/math_vector.c (+14, -0) (Diff)
/source/blender/blenlib/intern/math_vector_inline.c (+5, -0) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.c (+33, -13) (Diff)
/source/blender/editors/uvedit/uvedit_draw.c (+3, -0) (Diff)
/source/blender/blenlib/intern/math_vector.c (+14, -0) (Diff)
/source/blender/blenlib/intern/math_vector_inline.c (+5, -0) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.c (+33, -13) (Diff)
/source/blender/editors/uvedit/uvedit_draw.c (+3, -0) (Diff)