You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 meshList<Voxel_t>voxels;floatunit;
CPUVoxelizer.Voxelize(
mesh,
resolution,out voxels,out unit
);// print each voxel's positionfor(intv=0;v< voxels.Count;v++){
Debug.Log(voxels[v].position.ToString());}
Thank you very much for this tool.
The text was updated successfully, but these errors were encountered:
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:
Thank you very much for this tool.
The text was updated successfully, but these errors were encountered: