mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-17 22:08:27 +02:00
add leavesWrittenToBitstream member variable to VoxelTree for debug
This commit is contained in:
parent
c08b7acac5
commit
c51b4e3311
2 changed files with 5 additions and 0 deletions
|
@ -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 ++) {
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ public:
|
|||
~VoxelTree();
|
||||
|
||||
VoxelNode *rootNode;
|
||||
int leavesWrittenToBitstream;
|
||||
|
||||
int levelForViewerPosition(float * position);
|
||||
void readBitstreamToTree(unsigned char * bitstream, int bufferSizeBytes);
|
||||
|
|
Loading…
Reference in a new issue