Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Visualization Fault for Voxel Grid using Plotly

Open Renat2001 opened this issue 1 year ago • 1 comments

Checklist

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

image

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

Renat2001 avatar Jan 19 '24 11:01 Renat2001

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

saurabheights avatar Jan 21 '24 05:01 saurabheights