add leavesWrittenToBitstream member variable to VoxelTree for debug

This commit is contained in:
Stephen Birarda 2013-03-22 16:21:45 -07:00
parent c08b7acac5
commit c51b4e3311
2 changed files with 5 additions and 0 deletions

View file

@ -231,6 +231,10 @@ unsigned char * VoxelTree::loadBitstreamBuffer(unsigned char *& bitstreamBuffer,
unsigned char * childStopOctalCode = NULL;
if (currentVoxelNode->childMask == 0) {
leavesWrittenToBitstream++;
}
if (*currentVoxelNode->octalCode < deepestLevel - 1) {
for (int i = firstIndexToCheck; i < 8; i ++) {

View file

@ -23,6 +23,7 @@ public:
~VoxelTree();
VoxelNode *rootNode;
int leavesWrittenToBitstream;
int levelForViewerPosition(float * position);
void readBitstreamToTree(unsigned char * bitstream, int bufferSizeBytes);