isl-org / isl-org/Open3D

Visualization Fault for Voxel Grid using Plotly

Open
#6,613 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### 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

```python
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](https://github.com/isl-org/Open3D/assets/61690545/6071f5fd-1fd1-4d64-9cc4-4249562b8df7)

### Expected behavior

I expect to get valid VoxelGrid.

### Open3D, Python and System information

```markdown
- 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.