cleaned up some comments and code

This commit is contained in:
ZappoMan 2013-11-23 15:10:03 -08:00
parent b0cc6494da
commit cb43b0dea1
2 changed files with 0 additions and 6 deletions

View file

@ -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());
}

View file

@ -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;