diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-24 20:19:19 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-24 20:19:19 +0400 |
commit | df9ca0455c281ffba785a27f9cfd95135195f906 (patch) | |
tree | f7e7ec12c818406556914ce095d481ac5a0198c1 /source/blender/compositor/nodes | |
parent | e60c2f5c3e8945b4829171cd436fe15518fb916e (diff) |
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.
Diffstat (limited to 'source/blender/compositor/nodes')
0 files changed, 0 insertions, 0 deletions