Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Error when including front=array([ 0., 0., -1.] argument in draw_geometries function.

Open jjpatino-byte opened this issue 1 year ago • 1 comments

Checklist

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

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

- 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

jjpatino-byte avatar Jan 09 '24 15:01 jjpatino-byte

Same as https://github.com/isl-org/Open3D/issues/6586#issuecomment-1883531819.

saurabheights avatar Jan 09 '24 18:01 saurabheights