caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 1 | #include "CubicIntersection_TestData.h" |
| 2 | #include "Intersection_Tests.h" |
| 3 | |
| 4 | void cubecode_test(int test); |
| 5 | |
caryclark@google.com | fa0588f | 2012-04-26 21:01:06 +0000 | [diff] [blame] | 6 | #define TEST_QUADS_FIRST 0 |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 7 | |
caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 8 | void Intersection_Tests() { |
caryclark@google.com | 1577e8f | 2012-05-22 17:01:14 +0000 | [diff] [blame] | 9 | SimplifyNew_Test(); |
caryclark@google.com | 8dcf114 | 2012-07-02 20:27:02 +0000 | [diff] [blame] | 10 | Simplify4x4RectsThreaded_Test(); |
caryclark@google.com | 1577e8f | 2012-05-22 17:01:14 +0000 | [diff] [blame] | 11 | SimplifyFindNext_Test(); |
caryclark@google.com | b45a1b4 | 2012-05-18 20:50:33 +0000 | [diff] [blame] | 12 | SimplifyFindTop_Test(); |
| 13 | SimplifyAngle_Test(); |
| 14 | QuadraticReduceOrder_Test(); |
| 15 | QuadraticBezierClip_Test(); |
| 16 | QuadraticIntersection_Test(); |
caryclark@google.com | fa0588f | 2012-04-26 21:01:06 +0000 | [diff] [blame] | 17 | SimplifyAddIntersectingTs_Test(); |
caryclark@google.com | b45a1b4 | 2012-05-18 20:50:33 +0000 | [diff] [blame] | 18 | |
caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 19 | 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.com | a576423 | 2012-03-28 16:20:21 +0000 | [diff] [blame] | 31 | SimplifyQuadraticPaths_Test(); |
| 32 | |
caryclark@google.com | 4917f17 | 2012-03-05 22:01:21 +0000 | [diff] [blame] | 33 | SimplifyPolygonPaths_Test(); |
caryclark@google.com | 2e7f4c8 | 2012-03-20 21:11:59 +0000 | [diff] [blame] | 34 | SimplifyRectangularPaths_Test(); |
caryclark@google.com | 4917f17 | 2012-03-05 22:01:21 +0000 | [diff] [blame] | 35 | SimplifyQuadralateralPaths_Test(); |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 36 | |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 37 | ActiveEdge_Test(); |
caryclark@google.com | fa0588f | 2012-04-26 21:01:06 +0000 | [diff] [blame] | 38 | #if TEST_QUADS_FIRST |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 39 | Simplify4x4QuadraticsThreaded_Test(); |
| 40 | #endif |
caryclark@google.com | d88e089 | 2012-03-27 13:23:51 +0000 | [diff] [blame] | 41 | SimplifyDegenerate4x4TrianglesThreaded_Test(); |
| 42 | SimplifyNondegenerate4x4TrianglesThreaded_Test(); |
| 43 | Simplify4x4QuadralateralsThreaded_Test(); |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 44 | #if !TEST_QUADS_FIRST |
| 45 | Simplify4x4QuadraticsThreaded_Test(); |
| 46 | #endif |
caryclark@google.com | d88e089 | 2012-03-27 13:23:51 +0000 | [diff] [blame] | 47 | |
caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 48 | QuadraticCoincidence_Test(); |
caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 49 | QuadraticIntersection_Test(); |
| 50 | |
| 51 | CubicParameterization_Test(); |
| 52 | CubicCoincidence_Test(); |
| 53 | CubicReduceOrder_Test(); |
| 54 | CubicBezierClip_Test(); |
| 55 | CubicIntersection_Test(); |
caryclark@google.com | c682590 | 2012-02-03 22:07:47 +0000 | [diff] [blame] | 56 | |
caryclark@google.com | 27accef | 2012-01-25 18:57:23 +0000 | [diff] [blame] | 57 | } |