Commit: c4235356c95ef918aeb26ee2686c3e46686ac2b2
Author: Campbell Barton
Date:   Wed Sep 20 03:40:13 2017 +1000
Branches: master
https://developer.blender.org/rBc4235356c95ef918aeb26ee2686c3e46686ac2b2

BLI_polyfill2d_test: add test for T52834

Commented since it currently fails.

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

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 8855eb9ff8d..5f10837fca1 100644
--- a/tests/gtests/blenlib/BLI_polyfill2d_test.cc
+++ b/tests/gtests/blenlib/BLI_polyfill2d_test.cc
@@ -539,3 +539,20 @@ TEST(polyfill2d, IssueT41986_axis_align)
 
        TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
+
+#if 0
+/* Blender bug T52834 */
+TEST(polyfill2d, IssueT52834_axis_align_co_linear)
+{
+       const float poly[][2] = {
+           {40, 0}, {36, 0}, {36, 5}, {35, 5}, {35, 0}, {30, 0}, {30, 5}, {29, 
5}, {29, 0}, {24, 0}, {24, 3},
+           {23, 4}, {23, 0}, {18, 0}, {18, 5}, {17, 5}, {17, 0}, {12, 0}, {12, 
5}, {11, 5}, {11, 0}, {6, 0},
+           {6, 5}, {5, 5}, {5, 0}, {0, 0}, {0, 5}, {-1, 5}, {-1, 0}, {-6, 0}, 
{-9, -3}, {-6, -3}, {-6, -2},
+           {-1, -2}, {0, -2}, {5, -2}, {6, -2}, {11, -2}, {12, -2}, {17, -2}, 
{18, -2}, {23, -2}, {24, -2},
+           {29, -2}, {30, -2}, {35, -2}, {36, -2}, {40, -2},
+       };
+
+       TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
+}
+#endif
+

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

Reply via email to