LineSet visualization leads to spam in terminal
- 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](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Describe the issue
I am trying to visualize bounding boxes in Open3D. I convert them to LineSet and then add them into an Open3DScene.
Every time the a LineSet is added to the scene, something prints to the terminal warning message.
You can imagine that this gets quite annoying when you add lot of LineSets (or add LineSet per frame of visualization) and it hides the other terminal output.
Below I provide a minimal functioning code that leads to this.
Thanks!
### Steps to reproduce the bug
```python
import numpy as np
from open3d import geometry, utility
from open3d.visualization import rendering, gui
if __name__ == "__main__":
gui.Application.instance.initialize()
window = gui.Application.instance.create_window("window", 1920, 1080)
scene = rendering.Open3DScene(window.renderer)
material = rendering.MaterialRecord()
material.shader = "defaultLit"
# add line to scene
points = utility.Vector3dVector(np.array([[0,0,0], [1,1,1]]))
lines = utility.Vector2iVector(np.array([[0, 1]]))
scene.add_geometry("line", geometry.LineSet(points, lines), material)
gui.Application.instance.run()
```
### Error message
[entity=51, primitive @ 0] missing required attributes (0xd), declared=0x5]
### Expected behavior
No spam in terminal.
### Open3D, Python and System information
```markdown
- Ubuntu 20.04
- Python version: Python 3.8.10
- Open3D version: 0.15.2
- System architecture: x86
- Is this a remote workstation?: no
- 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.