save work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3141 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/CubicParameterization_Test.cpp b/experimental/Intersection/CubicParameterization_Test.cpp
index 18322c8..716aaec 100644
--- a/experimental/Intersection/CubicParameterization_Test.cpp
+++ b/experimental/Intersection/CubicParameterization_Test.cpp
@@ -1,5 +1,6 @@
-#include "CubicIntersection.h"
+#include "CurveIntersection.h"
#include "Intersection_Tests.h"
+#include "Parameterization_Test.h"
#include "TestUtilities.h"
const Quadratic quadratics[] = {
@@ -47,16 +48,16 @@
// The on curve points of each cubic should be on both parameterized cubics.
const Cubic cubics[] = {
{
- {1, -1},
- {.333, 1},
- {-.333, -1},
- {-1, 1}
+ { 1, -1},
+ { 1.0/3, 1},
+ {-1.0/3, -1},
+ {-1, 1}
},
{
- {-1, 1},
- {-.333, -1},
- {.333, 1},
- {1, -1}
+ {-1, 1},
+ {-1.0/3, -1},
+ { 1.0/3, 1},
+ { 1, -1}
},
{
{0, 2},
@@ -98,5 +99,8 @@
__FUNCTION__, index, inner);
}
}
+ if (!implicit_matches(cubics[index], cubics[index ^ 1])) {
+ printf("%s %d\n", __FUNCTION__, (int)index);
+ }
}
}