*/
#include <iostream>
#include "voxel_octree/SmartArea.hpp"
struct UserData
{
UserData(int value = 0) : value(value)
{
}
int64_t value = 0;
};
void main()
{
if (it)
{
node = it.node;
voxomap::SmartArea<UserData>* area = it.getArea();
std::cout << "x: " << int(it.x) << " y: " << int(it.y) << " z: " << int(it.z) << " value: " << it.voxel->value << std::endl;
}
}
Output: