Open3D
Open3D copied to clipboard
Visualization Fault for Voxel Grid using Plotly
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
mainbranch).
Describe the issue
I have been trying to visualize Voxel Grid using draw_plotly since on draw_geometries I got error [ GLFW Error: X11: The DISPLAY environment variable is missing ]. It's okay when I visualize Point Cloud, but when I try Voxel Grid I get empty output.
Steps to reproduce the bug
import numpy as np
import open3d
print('input')
bunny = open3d.data.BunnyMesh()
mesh = open3d.io.read_triangle_mesh(bunny.path)
# fit to unit cube
mesh.scale(1 / np.max(mesh.get_max_bound() - mesh.get_min_bound()),
center=mesh.get_center())
open3d.visualization.draw_plotly([mesh])
print('voxelization')
voxel_grid = open3d.geometry.VoxelGrid.create_from_triangle_mesh(mesh,
voxel_size=0.01)
open3d.visualization.draw_plotly([voxel_grid])
Error message
Expected behavior
I expect to get valid VoxelGrid.
Open3D, Python and System information
- Operating system: Ubuntu 22.04.2
- Python version: Python 3.9.18
- Open3D version: 0.18.0
- System architecture: x86_64
- Is this a remote workstation?: yes
- How did you install Open3D?: pip
Additional information
No response
There is no support for VoxelGrid geometry in draw_plotly. https://github.com/isl-org/Open3D/blob/main/python/open3d/visualization/draw_plotly.py#L98