mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
cleaned up some comments and code
This commit is contained in:
parent
b0cc6494da
commit
cb43b0dea1
2 changed files with 0 additions and 6 deletions
|
@ -1832,7 +1832,6 @@ void VoxelTree::writeToSVOFile(const char* fileName, VoxelNode* node) {
|
|||
// and reinsert the node in our bag and try again...
|
||||
if (bytesWritten == 0) {
|
||||
if (packet.hasContent()) {
|
||||
printf("writeToSVOFile()... WRITING %d bytes...\n", packet.getFinalizedSize());
|
||||
file.write((const char*)packet.getFinalizedData(), packet.getFinalizedSize());
|
||||
lastPacketWritten = true;
|
||||
}
|
||||
|
@ -1844,7 +1843,6 @@ void VoxelTree::writeToSVOFile(const char* fileName, VoxelNode* node) {
|
|||
}
|
||||
|
||||
if (!lastPacketWritten) {
|
||||
printf("writeToSVOFile()... END OF LOOP WRITING %d bytes...\n", packet.getFinalizedSize());
|
||||
file.write((const char*)packet.getFinalizedData(), packet.getFinalizedSize());
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ void voxelTutorial(VoxelTree * tree) {
|
|||
node->getColor()[0], node->getColor()[1], node->getColor()[2]);
|
||||
}
|
||||
|
||||
/***
|
||||
// here's an example of how to delete a voxel
|
||||
printf("attempting to delete corner point 0,0,0\n");
|
||||
tree->deleteVoxelAt(0, 0, 0, voxelSize);
|
||||
|
@ -56,7 +55,6 @@ void voxelTutorial(VoxelTree * tree) {
|
|||
} else {
|
||||
printf("corner point 0,0,0 does not exists...\n");
|
||||
}
|
||||
***/
|
||||
}
|
||||
|
||||
|
||||
|
@ -352,9 +350,7 @@ int main(int argc, const char * argv[])
|
|||
unsigned long nodeCount = myTree.getVoxelCount();
|
||||
printf("Nodes after adding scenes: %ld nodes\n", nodeCount);
|
||||
|
||||
printf("BEFORE writeToSVOFile()\n");
|
||||
myTree.writeToSVOFile("voxels.svo");
|
||||
printf("AFTER writeToSVOFile()\n");
|
||||
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue