Repository navigation
Update visualization.ipynb - #6263
Conversation
Linseed does not have a "zoom" option
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
|
Check out this pull request onΒ See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
According to the bot, I should update the CHANGELOG.md, but I see that there is already a "Corrected documentation for visualisation tutorial" there. Should I edit it or is it fine? |
Hi @Sendeky thanks for this PR! Don't worry about CHANGELOG - it's useful for larger PRs. |
| ")\n", | ||
| "line_set.colors = o3d.utility.Vector3dVector(colors)\n", | ||
| "o3d.visualization.draw_geometries([line_set], zoom=0.8)" | ||
| "o3d.visualization.draw_geometries([line_set])" |
There was a problem hiding this comment.
The problem is not that LineSet doesnt support zoom parameter but that o3d.visualization.draw_geometries doesnt support zoom parameter when passed without front, lookat, and up params. More information here - https://stackoverflow.com/a/76828436/1874627 answered by me.
The code here docs/jupyter/visualization/visualization.ipynb however will work if run directly from open3d repository, since open3d jupyter notebook used a hack to override o3d.visualization.draw_geometries. See here:- https://github.com/isl-org/Open3D/blob/master/docs/jupyter/open3d_tutorial.py#L67
As a quick fix, I will still go for accepting this PR, as above stackoverflow question clearly shows users are copying code with zoom parameter.
There was a problem hiding this comment.
Alternative option - Remove https://github.com/isl-org/Open3D/blob/master/docs/jupyter/open3d_tutorial.py#L67 and use import correctly, i.e. open3d_tut.jupyter_draw_geometries. This shows a custom method is called that creates Open3D window as well as captures a screenshot of the window before closing.
IMO - draw_geometries method should be extended to include the functionality provided by https://github.com/isl-org/Open3D/blob/master/docs/jupyter/open3d_tutorial.py#L17C1-L62C25
LineSet does not have a "zoom" option
Type
Motivation and Context
A simple correction to the documentation so that new users don't have to figure out why their "zoom" option isn't working for LineSet
Checklist:
python util/check_style.py --applyto apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
Simple fix in the documentation. When drawing LineSet using "draw_geometries", you cannot use the "zoom" argument
This change isβ