Error when including front=array([ 0., 0., -1.] argument in draw_geometries function.
- 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 use the o3d.visualization.draw_geometries([final], front= np.array([0,0,-1], dtype = 'float') ) function, but when including the "front" or "up" arguments, there is an error. Is there a way to do it? I really need to use those arguments, is there another way to modify those arguments with the same effect?
### Steps to reproduce the bug
```python
o3d.visualization.draw_geometries([final], front=[0,0,-1] )
```
### Error message
TypeError: draw_geometries(): incompatible function arguments. The following argument types are supported:
1. (geometry_list: List[open3d.cpu.pybind.geometry.Geometry], window_name: str = 'Open3D', width: int = 1920, height: int = 1080, left: int = 50, top: int = 50, point_show_normal: bool = False, mesh_show_wireframe: bool = False, mesh_show_back_face: bool = False) -> None
2. (geometry_list: List[open3d.cpu.pybind.geometry.Geometry], window_name: str = 'Open3D', width: int = 1920, height: int = 1080, left: int = 50, top: int = 50, point_show_normal: bool = False, mesh_show_wireframe: bool = False, mesh_show_back_face: bool = False, lookat: numpy.ndarray[float64[3, 1]], up: numpy.ndarray[float64[3, 1]], front: numpy.ndarray[float64[3, 1]], zoom: float) -> None
Invoked with: [PointCloud with 83133 points.]; kwargs: front=array([ 0., 0., -1.])
### Expected behavior
_No response_
### Open3D, Python and System information
```markdown
- Operating system: Ubuntu 20.04 / macOS 10.15 / Windows 10 64-bit
- Python version: Python 3.8 / output from `import sys; print(sys.version)`
- Open3D version: output from python: `print(open3d.__version__)`
- System architecture: x86 / arm64 / apple-silicon / jetson / rpi
- Is this a remote workstation?: yes or no
- How did you install Open3D?: pip / conda / build from source
- Compiler version (if built from source): gcc 7.5 / clang 7.0
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported Python call to o3d.visualization.draw_geometries and the overload signatures in the error message. Reproduce the call with the supplied point cloud and camera arguments, then inspect the Python binding entry point for this function. Done means the requested front or up argument has a supported, documented invocation and the reported TypeError is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- api, computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100