blob: e3c042cf2756a53bc9cbaf0f2bfaaaab27aa7575 [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.comfa0588f2012-04-26 21:01:06 +000010 SimplifyAddIntersectingTs_Test();
caryclark@google.comd88e0892012-03-27 13:23:51 +000011
caryclark@google.com27accef2012-01-25 18:57:23 +000012 cubecode_test(1);
13 convert_testx();
14 // tests are in dependency / complexity order
15 Inline_Tests();
16 ConvexHull_Test();
17 ConvexHull_X_Test();
18
19 LineParameter_Test();
20 LineIntersection_Test();
21 LineQuadraticIntersection_Test();
22 LineCubicIntersection_Test();
23
caryclark@google.coma5764232012-03-28 16:20:21 +000024 SimplifyQuadraticPaths_Test();
25
caryclark@google.com4917f172012-03-05 22:01:21 +000026 SimplifyPolygonPaths_Test();
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000027 SimplifyRectangularPaths_Test();
caryclark@google.com4917f172012-03-05 22:01:21 +000028 SimplifyQuadralateralPaths_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000029
caryclark@google.com78e17132012-04-17 11:40:34 +000030 ActiveEdge_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000031#if TEST_QUADS_FIRST
caryclark@google.com78e17132012-04-17 11:40:34 +000032 Simplify4x4QuadraticsThreaded_Test();
33#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000034 SimplifyDegenerate4x4TrianglesThreaded_Test();
35 SimplifyNondegenerate4x4TrianglesThreaded_Test();
36 Simplify4x4QuadralateralsThreaded_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000037#if !TEST_QUADS_FIRST
38 Simplify4x4QuadraticsThreaded_Test();
39#endif
caryclark@google.comd88e0892012-03-27 13:23:51 +000040
caryclark@google.com27accef2012-01-25 18:57:23 +000041 QuadraticCoincidence_Test();
42 QuadraticReduceOrder_Test();
43 QuadraticBezierClip_Test();
44 QuadraticIntersection_Test();
45
46 CubicParameterization_Test();
47 CubicCoincidence_Test();
48 CubicReduceOrder_Test();
49 CubicBezierClip_Test();
50 CubicIntersection_Test();
caryclark@google.comc6825902012-02-03 22:07:47 +000051
caryclark@google.com27accef2012-01-25 18:57:23 +000052}