isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.4k stars 2.3k forks source link

Option for add_geometry not to reset camera view #4306

Open dkimanius opened 2 years ago

dkimanius commented 2 years ago

I know that there is another closed feature request (#2264) regarding this issue. The suggested solution there is to use the convert_to_pinhole_camera_parameters function to store the camera view and restore it after the call to add_geometry.

When doing that I noticed this warning when the othogonal view is adjusted: [Open3D WARNING] [ViewControl] ConvertToPinholeCameraParameters() failed because orthogonal view cannot be translated to a pinhole camera.

One can resolve this issue by reseting the orthogonal view and storing it as a parameter and then restoring also it after the call. However, this is only an issue because add_geometry resets the view in the first place. Why does it do that? And can we add an option (function parameter) to not do that?

BhavyanshM commented 2 years ago

I agree. Could we please add an option that prevents add_geometry from resetting the view. It would be a very helpful feature for a lot of users. Thank you so much in advance.

schaubli commented 1 year ago

You can use the reset_bounding_box parameter (default=True). If you set reset_bounding_box to False, the view point or camera point of view will not change when adding or removing geometry.