isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.33k stars 2.29k forks source link

Add constructor and set operations to the Voxelgrid class #2758

Open kfarivar opened 3 years ago

kfarivar commented 3 years ago

I am trying to voxelize pointcloud and a reconstructed mesh. and I want to then add the voxels that already don't exist in the pointcloud from the mesh. But apparently union or intersection is not supported on voxel grids. I tried to get the voxel coordinates do my set operations on the voxel coordinates and then return it to a voxelgrid but then I realised there doesn't seem to be a way to initialize a voxelgrid from a set of voxel coordinates.

LithosphereRocketry commented 2 years ago

I am in a very similar situation. It seems that the C++ API has (or once had) the AddVoxel() function that at least provided a way to do this, but it doesn't seem to have made it over to Python, and it wasn't a full solution in any case - having a VoxelGrid(points) constructor as already exists for PointCloud would be very helpful.