I'ts possible to construct a voxelization of any 3D model from an octree. First, increases the size of the AABB to the largest AABB side and implements the octree by selecting a maximum level. Set the nodes to grey (border), black (inner) or white (outer). Define the voxel size as the deepest octree node. Fill all octree nodes with the voxel defined above. Voxelization are black and grey nodes. C++ implementation.
9 июн 2024