added VoxelNode::printDebugDetails()

This commit is contained in:
ZappoMan 2013-04-25 17:29:56 -07:00
parent 2c48139ff3
commit 667fe11694
2 changed files with 10 additions and 0 deletions

View file

@ -191,6 +191,14 @@ bool VoxelNode::isLeaf() const {
return (0 == childCount);
}
void VoxelNode::printDebugDetails(const char* label) const {
AABox box;
getAABox(box);
printf("%s - Voxel at corner=(%f,%f,%f) size=%f octcode=",label,
box.getCorner().x, box.getCorner().y, box.getCorner().z,box.getSize().x);
printOctalCode(octalCode);
}
bool VoxelNode::isInView(const ViewFrustum& viewFrustum) const {
AABox box;

View file

@ -60,6 +60,8 @@ public:
bool isLeaf() const;
void getAABox(AABox& box) const;
void printDebugDetails(const char* label) const;
};
#endif /* defined(__hifi__VoxelNode__) */