Convert numpy 3D binary array to VoxelGrid / PointCloud #6132
Unanswered
JorgeESantos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings.
I'm trying to convert a binary numpy 3D array of indices (1s material, 0s void) to a voxel grid / point cloud and attribute to each vertex, of each voxel, its respective coordinates (x,y,z), based on voxel lenght/size.
At the moment I generated a meshgrid that contains all points of the domain where the voxels could be defined. I just can't distinguish the points that belong to my voxels from the ones that don't.
Any help would be welcome.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions