blob: 017f1d14787b0bdc046e78b961deb6cd9b1b2aa0 [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);
5
caryclark@google.comfa0588f2012-04-26 21:01:06 +00006#define TEST_QUADS_FIRST 0
caryclark@google.com78e17132012-04-17 11:40:34 +00007
caryclark@google.com27accef2012-01-25 18:57:23 +00008void Intersection_Tests() {
caryclark@google.com1577e8f2012-05-22 17:01:14 +00009 SimplifyNew_Test();
caryclark@google.com8dcf1142012-07-02 20:27:02 +000010 Simplify4x4RectsThreaded_Test();
caryclark@google.com1577e8f2012-05-22 17:01:14 +000011 SimplifyFindNext_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000012 SimplifyFindTop_Test();
13 SimplifyAngle_Test();
14 QuadraticReduceOrder_Test();
15 QuadraticBezierClip_Test();
16 QuadraticIntersection_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000017 SimplifyAddIntersectingTs_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000018
caryclark@google.com27accef2012-01-25 18:57:23 +000019 cubecode_test(1);
20 convert_testx();
21 // tests are in dependency / complexity order
22 Inline_Tests();
23 ConvexHull_Test();
24 ConvexHull_X_Test();
25
26 LineParameter_Test();
27 LineIntersection_Test();
28 LineQuadraticIntersection_Test();
29 LineCubicIntersection_Test();
30
caryclark@google.coma5764232012-03-28 16:20:21 +000031 SimplifyQuadraticPaths_Test();
32
caryclark@google.com4917f172012-03-05 22:01:21 +000033 SimplifyPolygonPaths_Test();
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000034 SimplifyRectangularPaths_Test();
caryclark@google.com4917f172012-03-05 22:01:21 +000035 SimplifyQuadralateralPaths_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000036
caryclark@google.com78e17132012-04-17 11:40:34 +000037 ActiveEdge_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000038#if TEST_QUADS_FIRST
caryclark@google.com78e17132012-04-17 11:40:34 +000039 Simplify4x4QuadraticsThreaded_Test();
40#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000041 SimplifyDegenerate4x4TrianglesThreaded_Test();
42 SimplifyNondegenerate4x4TrianglesThreaded_Test();
43 Simplify4x4QuadralateralsThreaded_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000044#if !TEST_QUADS_FIRST
45 Simplify4x4QuadraticsThreaded_Test();
46#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000047
caryclark@google.com27accef2012-01-25 18:57:23 +000048 QuadraticCoincidence_Test();
caryclark@google.com27accef2012-01-25 18:57:23 +000049 QuadraticIntersection_Test();
50
51 CubicParameterization_Test();
52 CubicCoincidence_Test();
53 CubicReduceOrder_Test();
54 CubicBezierClip_Test();
55 CubicIntersection_Test();
caryclark@google.comc6825902012-02-03 22:07:47 +000056
caryclark@google.com27accef2012-01-25 18:57:23 +000057}