mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
added VoxelNode::printDebugDetails()
This commit is contained in:
parent
2c48139ff3
commit
667fe11694
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -60,6 +60,8 @@ public:
|
|||
bool isLeaf() const;
|
||||
|
||||
void getAABox(AABox& box) const;
|
||||
|
||||
void printDebugDetails(const char* label) const;
|
||||
};
|
||||
|
||||
#endif /* defined(__hifi__VoxelNode__) */
|
||||
|
|
Loading…
Reference in a new issue