isl-org / isl-org/Open3D

Visualization of a Mesh Far Away From Origin

Open
#5,056 0 comments 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](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 have been trying to visualize a mesh far away from the origin and noticed that the visualization is not working as expected.
Here is how the visualization looks like for the following example


![Screenshot from 2022-04-26 19-50-35](https://user-images.githubusercontent.com/102163377/165361722-75b1515e-0d8e-4cbd-b9d5-754a9bc9ccef.png)
![Screenshot from 2022-04-26 19-50-25](https://user-images.githubusercontent.com/102163377/165361726-7bcb5bb1-b7e6-4e5a-91ec-41f5f036de8d.png)

### Steps to reproduce the bug

```python
import open3d as o3d
import numpy as np

knot_mesh = o3d.data.KnotMesh()
mesh = o3d.io.read_triangle_mesh(knot_mesh.path)
mesh.compute_vertex_normals()

mesh.translate(3e7 * np.array([1, 1, 1]), relative=False)

o3d.visualization.draw_geometries([mesh])
```

### Error message

_No response_

### Expected behavior

The visualization should not change when the mesh is translated

### Open3D, Python and System information

```markdown
- Operating system: Ubuntu 20.04
- Python version: 3.9.12 (main, Apr 18 2022, 22:40:46) [GCC 9.4.0]
- Open3D version: output from python: 0.15.2+97960f2
- 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.