Commit: af32c1c77bbba31172354ed8c3d425bb81b31893
Author: Campbell Barton
Date:   Thu Dec 26 12:05:42 2013 +1100
https://developer.blender.org/rBaf32c1c77bbba31172354ed8c3d425bb81b31893

Fix T37946: Error filling ngons

===================================================================

M       source/blender/blenlib/intern/polyfill2d.c

===================================================================

diff --git a/source/blender/blenlib/intern/polyfill2d.c 
b/source/blender/blenlib/intern/polyfill2d.c
index 287a090..56cd385 100644
--- a/source/blender/blenlib/intern/polyfill2d.c
+++ b/source/blender/blenlib/intern/polyfill2d.c
@@ -316,9 +316,9 @@ static bool pf_ear_tip_check(PolyFill *pf, const unsigned 
int index_ear_tip)
                        /* Because the polygon has clockwise winding order,
                         * the area sign will be positive if the point is 
strictly inside.
                         * It will be 0 on the edge, which we want to include 
as well. */
-                       if ((span_tri_v2_sign(v1, v2, v) == CONVEX) &&
-                           (span_tri_v2_sign(v2, v3, v) == CONVEX) &&
-                           (span_tri_v2_sign(v3, v1, v) == CONVEX))
+                       if ((span_tri_v2_sign(v1, v2, v) != CONCAVE) &&
+                           (span_tri_v2_sign(v2, v3, v) != CONCAVE) &&
+                           (span_tri_v2_sign(v3, v1, v) != CONCAVE))
                        {
                                return false;
                        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to