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
That seems to be a limitation of pybind11. As the VoxelGrid class is subject to some changes anyway it might not be worth to implement a fix atm.
What you can however do to achieve your goal is to first collect all voxels in a Python list, and then assign this list to the VoxelGrid
IMPORTANT: Please use the following template to report the bug.
Describe the bug
open3d.geometry.VoxelGrid.voxels.append(voxel) does not append the voxel object or any other object.
My goal is to create a VoxelGrid object from a numpy array of shape (128,128,128).
To Reproduce
but
print(vg.voxels)
just returns[]
and of course
print(vg.has_voxels)
says<bound method PyCapsule.has_voxels of geometry::VoxelGrid with 0 voxels.>
Expected behavior
vg.voxels should contain the Voxel object
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: