blob: 4e4c8de90b02c88beb2960a5a92c5a20dba030ef [file] [log] [blame]
caryclark@google.com27accef2012-01-25 18:57:23 +00001#include "CubicIntersection_TestData.h"
2#include "Intersection_Tests.h"
3
4void cubecode_test(int test);
caryclark@google.comc6825902012-02-03 22:07:47 +00005void testSimplify();
caryclark@google.com27accef2012-01-25 18:57:23 +00006
caryclark@google.comfa0588f2012-04-26 21:01:06 +00007#define TEST_QUADS_FIRST 0
caryclark@google.com78e17132012-04-17 11:40:34 +00008
caryclark@google.com27accef2012-01-25 18:57:23 +00009void Intersection_Tests() {
caryclark@google.comb45a1b42012-05-18 20:50:33 +000010 SimplifyFindTop_Test();
11 SimplifyAngle_Test();
12 QuadraticReduceOrder_Test();
13 QuadraticBezierClip_Test();
14 QuadraticIntersection_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000015 SimplifyAddIntersectingTs_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000016
caryclark@google.com27accef2012-01-25 18:57:23 +000017 cubecode_test(1);
18 convert_testx();
19 // tests are in dependency / complexity order
20 Inline_Tests();
21 ConvexHull_Test();
22 ConvexHull_X_Test();
23
24 LineParameter_Test();
25 LineIntersection_Test();
26 LineQuadraticIntersection_Test();
27 LineCubicIntersection_Test();
28
caryclark@google.coma5764232012-03-28 16:20:21 +000029 SimplifyQuadraticPaths_Test();
30
caryclark@google.com4917f172012-03-05 22:01:21 +000031 SimplifyPolygonPaths_Test();
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000032 SimplifyRectangularPaths_Test();
caryclark@google.com4917f172012-03-05 22:01:21 +000033 SimplifyQuadralateralPaths_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000034
caryclark@google.com78e17132012-04-17 11:40:34 +000035 ActiveEdge_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000036#if TEST_QUADS_FIRST
caryclark@google.com78e17132012-04-17 11:40:34 +000037 Simplify4x4QuadraticsThreaded_Test();
38#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000039 SimplifyDegenerate4x4TrianglesThreaded_Test();
40 SimplifyNondegenerate4x4TrianglesThreaded_Test();
41 Simplify4x4QuadralateralsThreaded_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000042#if !TEST_QUADS_FIRST
43 Simplify4x4QuadraticsThreaded_Test();
44#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000045
caryclark@google.com27accef2012-01-25 18:57:23 +000046 QuadraticCoincidence_Test();
caryclark@google.com27accef2012-01-25 18:57:23 +000047 QuadraticIntersection_Test();
48
49 CubicParameterization_Test();
50 CubicCoincidence_Test();
51 CubicReduceOrder_Test();
52 CubicBezierClip_Test();
53 CubicIntersection_Test();
caryclark@google.comc6825902012-02-03 22:07:47 +000054
caryclark@google.com27accef2012-01-25 18:57:23 +000055}