Document the geometry in the tests.

This commit is contained in:
Bill Currie 2011-09-27 12:30:21 +09:00
parent aa6b7ef7e8
commit a7482570b6

View file

@ -13,6 +13,13 @@
# include "../trace.c"
#endif
// 0,0
// |\ .
// |s\ .
// |ss\ .
// 0 1
mclipnode_t clipnodes0[] = {
{ 0, { 1, CONTENTS_EMPTY}},
{ 1, {CONTENTS_EMPTY, CONTENTS_SOLID}},
@ -32,6 +39,11 @@ hull_t hull0 = {
{0, 0, 0},
};
// -32 32 48
// sss|sss| |sss
// sss|sss| |sss
// 0 1 2
mclipnode_t clipnodes1[] = {
{ 0, { 1, CONTENTS_SOLID}},
{ 1, { 2, CONTENTS_SOLID}},
@ -53,6 +65,11 @@ hull_t hull1 = {
{0, 0, 0},
};
// -32 32 48
// sss|sss| |sss
// sss|sss| |sss
// 1 0 2
mclipnode_t clipnodes2[] = {
{ 0, { 2, 1}},
{ 1, {CONTENTS_SOLID, CONTENTS_SOLID}},
@ -74,6 +91,11 @@ hull_t hull2 = {
{0, 0, 0},
};
// -32 32 48
// sss| |www|sss
// sss| |www|sss
// 1 0 2
mclipnode_t clipnodes3[] = {
{ 0, { 2, 1}},
{ 1, {CONTENTS_SOLID, CONTENTS_EMPTY}},