store octal code with VoxelNode

This commit is contained in:
Stephen Birarda 2013-03-15 12:25:48 -07:00
parent 2f7767bc9b
commit 14b23fc053
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,9 @@
VoxelNode::VoxelNode() {
childMask = 0;
octalCode = NULL;
// default pointers to child nodes to NULL
for (int i = 0; i < 8; i++) {
children[i] = NULL;

View file

@ -15,6 +15,7 @@ class VoxelNode {
public:
VoxelNode();
unsigned char *octalCode;
unsigned char color[4];
VoxelNode *children[8];
unsigned char childMask;