2012-01-25 18:57:23 +00:00
|
|
|
#include "CubicIntersection_TestData.h"
|
|
|
|
#include "Intersection_Tests.h"
|
|
|
|
|
|
|
|
void cubecode_test(int test);
|
2012-02-03 22:07:47 +00:00
|
|
|
void testSimplify();
|
2012-01-25 18:57:23 +00:00
|
|
|
|
2012-04-17 11:40:34 +00:00
|
|
|
#define TEST_QUADS_FIRST 01
|
|
|
|
|
2012-01-25 18:57:23 +00:00
|
|
|
void Intersection_Tests() {
|
2012-04-17 11:40:34 +00:00
|
|
|
#if !TEST_QUADS_FIRST
|
2012-03-27 13:23:51 +00:00
|
|
|
ActiveEdge_Test();
|
2012-04-17 11:40:34 +00:00
|
|
|
#endif
|
2012-03-27 13:23:51 +00:00
|
|
|
|
2012-01-25 18:57:23 +00:00
|
|
|
cubecode_test(1);
|
|
|
|
convert_testx();
|
|
|
|
// tests are in dependency / complexity order
|
|
|
|
Inline_Tests();
|
|
|
|
ConvexHull_Test();
|
|
|
|
ConvexHull_X_Test();
|
|
|
|
|
|
|
|
LineParameter_Test();
|
|
|
|
LineIntersection_Test();
|
|
|
|
LineQuadraticIntersection_Test();
|
|
|
|
LineCubicIntersection_Test();
|
|
|
|
|
2012-03-28 16:20:21 +00:00
|
|
|
SimplifyQuadraticPaths_Test();
|
|
|
|
|
2012-03-05 22:01:21 +00:00
|
|
|
SimplifyPolygonPaths_Test();
|
2012-03-20 21:11:59 +00:00
|
|
|
SimplifyRectangularPaths_Test();
|
2012-03-05 22:01:21 +00:00
|
|
|
SimplifyQuadralateralPaths_Test();
|
2012-04-17 11:40:34 +00:00
|
|
|
|
|
|
|
#if TEST_QUADS_FIRST
|
|
|
|
ActiveEdge_Test();
|
|
|
|
Simplify4x4QuadraticsThreaded_Test();
|
|
|
|
#endif
|
2012-03-27 13:23:51 +00:00
|
|
|
SimplifyDegenerate4x4TrianglesThreaded_Test();
|
|
|
|
SimplifyNondegenerate4x4TrianglesThreaded_Test();
|
|
|
|
Simplify4x4QuadralateralsThreaded_Test();
|
2012-04-17 11:40:34 +00:00
|
|
|
#if !TEST_QUADS_FIRST
|
|
|
|
Simplify4x4QuadraticsThreaded_Test();
|
|
|
|
#endif
|
2012-03-27 13:23:51 +00:00
|
|
|
|
2012-01-25 18:57:23 +00:00
|
|
|
QuadraticCoincidence_Test();
|
|
|
|
QuadraticReduceOrder_Test();
|
|
|
|
QuadraticBezierClip_Test();
|
|
|
|
QuadraticIntersection_Test();
|
|
|
|
|
|
|
|
CubicParameterization_Test();
|
|
|
|
CubicCoincidence_Test();
|
|
|
|
CubicReduceOrder_Test();
|
|
|
|
CubicBezierClip_Test();
|
|
|
|
CubicIntersection_Test();
|
2012-02-03 22:07:47 +00:00
|
|
|
|
2012-01-25 18:57:23 +00:00
|
|
|
}
|