[vtkusers] Uniformly subdividing a 3D space with points

David Doria daviddoria+vtk at gmail.com
Sun Jan 17 09:38:00 EST 2010


I have a point cloud. I would like to break it down into a uniform
grid of cubic voxels (axis aligned is fine). That is, I would like to
be able to ask "which points are in voxel (i,j,k)?". The only way I
know how to do this is to actually create a cube to represent each
voxel and then, for each cube, use a vtkSelectEnclosedPoints filter.
This seems very "manual" - I'd need to come up with a data structure
to store the cubes in this (i,j,k) type format, etc. It seems like
there should be a way to divide the space into a grid of cubes all in
one shot.

Does anyone know of a filter that does this efficiently?

Thanks,

David



More information about the vtkusers mailing list