Blender Git Commit Log
Git Commits -> Revision df9ca04
Revision df9ca04 by Bastien Montagne (master) June 24, 2012, 16:19 (GMT) |
Fix [#31807] Ngon triangulation error Notes: *This implements a quite simple algorithm, which simply checks angles (actually, absolute cosines) of created tri and remaining face (which may be a tri, quad, or more NGon), so that both are "best" (ie avoid as much as possible too much narrow/wide corners), and also checks the new edge is OK (i.e. does not goes "out" of original face). *Incidently, it fixes a typo in that bm_face_goodline() func! *It's quite performant (a bit quicker than previous code, as far as I have tested it) and prevent creation of completely flat triangles as much as possible, but it's far from being a "best" solution (as it is still a "progressive" one)! *It also introduces a new math func (in BLI_math_vector.h), cos_v3v3v3, which computes cosine (ie dot product of normalized vectors) and is roughly a quicker replacement for angle_v3v3v3, when real angles are not needed. |
Commit Details:
Full Hash: df9ca0455c281ffba785a27f9cfd95135195f906
SVN Revision: 48243
Parent Commit: e60c2f5
Lines Changed: +127, -19