mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +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;
|
unsigned char * childStopOctalCode = NULL;
|
||||||
|
|
||||||
|
if (currentVoxelNode->childMask == 0) {
|
||||||
|
leavesWrittenToBitstream++;
|
||||||
|
}
|
||||||
|
|
||||||
if (*currentVoxelNode->octalCode < deepestLevel - 1) {
|
if (*currentVoxelNode->octalCode < deepestLevel - 1) {
|
||||||
for (int i = firstIndexToCheck; i < 8; i ++) {
|
for (int i = firstIndexToCheck; i < 8; i ++) {
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ public:
|
||||||
~VoxelTree();
|
~VoxelTree();
|
||||||
|
|
||||||
VoxelNode *rootNode;
|
VoxelNode *rootNode;
|
||||||
|
int leavesWrittenToBitstream;
|
||||||
|
|
||||||
int levelForViewerPosition(float * position);
|
int levelForViewerPosition(float * position);
|
||||||
void readBitstreamToTree(unsigned char * bitstream, int bufferSizeBytes);
|
void readBitstreamToTree(unsigned char * bitstream, int bufferSizeBytes);
|
||||||
|
|
Loading…
Reference in a new issue