Add a bunch of in-solid tests.

Tests where the box is only partially in a solid tend to fail (particularly
when the solid is on the back side of the split plane).
This commit is contained in:
Bill Currie 2011-11-28 20:28:37 +09:00
parent 50b08c98fa
commit 13d37f4838

View file

@ -390,6 +390,20 @@ test_t tests[] = {
{ -8, 0, 8}, {-12, 0, 12}, { 1, 0, 0, 1, 0, 9}},
{"Point, Covered Step touch backside", &point, &hull_covered_step,
{ 0, 0, 8}, {-12, 0, 12}, { 1, 0, 1, 1, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{ -4, 0, 4}, {-12, 0, 12}, { 1, 0, 1, 1, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{ -4, 0, 4}, {-16, 0, 36}, { 0.875, 0, 1, 1, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{ -4, 0, 4}, {-16, 0, 4}, { 1, 1, 1, 0, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{-12, 0, 4}, {-16, 0, 4}, { 1, 1, 1, 0, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{-16, 0, 4}, { -4, 0, 4}, { 1, 1, 1, 0, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{ 16, 0, -16}, { 16, 0, 64}, { 1, 1, 1, 0, 0, 9}},
{"Box, Covered Step start solid", &box, &hull_covered_step,
{ 16, 0, 16}, { 16, 0, 64}, { 1, 0, 1, 1, 0, 9}},
{"Box, Step 2", &box, &hull_step2,
{ 0, 0, 64}, {0, 0, 0}, { 0.375, 0, 0, 1, 0, 5}},