Correct hull3 and its tests.

I'd gotten the solid/empty parts backwards.
This commit is contained in:
Bill Currie 2011-09-27 17:11:57 +09:00
parent 3e74aa5303
commit 9c6693d567

View file

@ -100,7 +100,7 @@ hull_t hull2 = {
mclipnode_t clipnodes3[] = {
{ 0, { 2, 1}},
{ 1, {CONTENTS_SOLID, CONTENTS_EMPTY}},
{ 1, {CONTENTS_EMPTY, CONTENTS_SOLID}},
{ 2, {CONTENTS_SOLID, CONTENTS_WATER}},
};
@ -152,10 +152,10 @@ test_t tests[] = {
{0, &point, &hull2, { 40, 0, 0}, {-88, 0, 0}, {0.0625, 0, 0, 1, 0}},
{0, &point, &hull2, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 1, 1, 0}},
{0, &point, &hull3, {-64, 0, 0}, { 64, 0, 0}, { 0.25, 0, 0, 1, 0}},
{0, &point, &hull3, { 0, 0, 0}, { 40, 0, 0}, { 1, 0, 1, 0, 1}},
{0, &point, &hull3, { 40, 0, 0}, {-88, 0, 0}, {0.0625, 0, 0, 0, 1}},
{0, &point, &hull3, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 1, 0, 1}},
{0, &point, &hull3, {-64, 0, 0}, { 64, 0, 0}, { 0.875, 0, 1, 1, 1}},
{0, &point, &hull3, { 0, 0, 0}, { 40, 0, 0}, { 1, 0, 0, 1, 1}},
{0, &point, &hull3, { 40, 0, 0}, {-88, 0, 0}, {0.5625, 0, 0, 1, 1}},
{0, &point, &hull3, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 0, 1, 1}},
};
#define num_tests (sizeof (tests) / sizeof (tests[0]))