Hello, I'm trying to do CPU voxelization of a mesh and get the positions of the resulting voxels, but they're all reported as (0.0, 0.0, 0.0).
Here is my code:
// voxelize a mesh
List<Voxel_t> voxels;
float unit;
CPUVoxelizer.Voxelize(
mesh,
resolution,
out voxels,
out unit
);
// print each voxel's position
for (int v = 0; v < voxels.Count; v++) {
Debug.Log(voxels[v].position.ToString());
}
Thank you very much for this tool.