7 #include "voxel_octree/SmartArea.hpp"
13 UserData(
int value = 0) : value(value)
29 for (
int x = 0; x < 42; ++x)
31 for (
int y = 0; y < 42; ++y)
33 for (
int z = 0; z < 42; ++z)
35 voxel_octree.
addVoxel(x, y, z, user_value);
54 voxomap::SmartArea<UserData>* area = it.getArea();
57 std::cout <<
"x: " << int(it.x) <<
" y: " << int(it.y) <<
" z: " << int(it.z) <<
" value: " << it.voxel->value << std::endl;
63 for (
int ix = -1; ix <= 1; ++ix)
65 for (
int iy = -1; iy <= 1; ++iy)
67 for (
int iz = -1; iz <= 1; ++iz)
70 if (ix == 0 && iy == 0 && iz == 0)
76 std::cout <<
"x: " << int(tmp_it.x) <<
" y: " << int(tmp_it.y) <<
" z: " << int(tmp_it.z) <<
" value: " << tmp_it.voxel->value << std::endl;