[Bf-blender-cvs] [49ee5f0] gtest-staging: Add error from T40777 into test

Campbell Barton noreply at git.blender.org
Tue Jun 24 12:34:41 CEST 2014


Commit: 49ee5f0d70bb60e53d258970f1791f441e251fe6
Author: Campbell Barton
Date:   Tue Jun 24 20:34:11 2014 +1000
https://developer.blender.org/rB49ee5f0d70bb60e53d258970f1791f441e251fe6

Add error from T40777 into test

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

M	tests/gtests/blenlib/BLI_polyfill2d_test.cc

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

diff --git a/tests/gtests/blenlib/BLI_polyfill2d_test.cc b/tests/gtests/blenlib/BLI_polyfill2d_test.cc
index 59a5c4e..6592adc 100644
--- a/tests/gtests/blenlib/BLI_polyfill2d_test.cc
+++ b/tests/gtests/blenlib/BLI_polyfill2d_test.cc
@@ -411,3 +411,13 @@ TEST(polyfill2d, TestIssue1407_pt)
 	    {3.914329f, 1.9008259f}, {4.414321f, 1.903619f}, {4.8973203f, 1.9063174f}, {5.4979978f, 1.9096732f}, {4, 4},};
 	TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
+
+/* Simplified from Blender bug T40777 */
+TEST(polyfill2d, TestIssueT40777_colinear)
+{
+	float poly[][2] = {
+	    {0.7, 0.37}, {0.7, 0}, {0.76, 0}, {0.76, 0.4}, {0.83, 0.4}, {0.83, 0}, {0.88, 0}, {0.88, 0.4},
+	    {0.94, 0.4}, {0.94, 0}, {1, 0}, {1, 0.4}, {0.03, 0.62}, {0.03, 0.89}, {0.59, 0.89}, {0.03, 1},
+	    {0, 1}, {0, 0}, {0.03, 0}, {0.03, 0.37}};
+	TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
+}




More information about the Bf-blender-cvs mailing list