Borrar filtros
Borrar filtros

rotate3d not working properly with matlab GUI and pcshow function

14 visualizaciones (últimos 30 días)
Lennart Hinz
Lennart Hinz el 19 de Abr. de 2018
Comentada: Joel Berkson el 3 de Jul. de 2024 a las 17:25
Hey! I'm trying to create a GUI to visualize and postprocess some data (ASCII pointcloud). Unfortunately the rotate3d function does not work the intended way when dealing with GUI elements and pcshow. There seems to be an issue with the button up callback. On one hand, the rotation of the axis is somehow buggy (everytime I klick again, it jumps to another view) and on the other hand, the cursor does not change when leaving the axis.
I tried this on several machines. It occours on r2017b and r2016b. On r2015b, the rotation works perfect, but the cursor still does not change.
plot3 and scatter3 are working fine but are not suitable for my application.
I added two files with an mwe to help spotting the issue.
Thank you for your help.
  2 comentarios
Louise Clark
Louise Clark el 24 de Oct. de 2018
I also have this same issue on r2018b, in my GUI I am loading a .ply file using pcshow() but again, the axis wont rotate 3D.
I have tried
rotate3d(axis_handle, 'on');
which stops the error messages showing when I try to rotate, but otherwise I get the same issue with the button up callback.
Did you manage to solve this issue?
Veronica Taurino
Veronica Taurino el 2 de Mayo de 2022
Editada: Veronica Taurino el 3 de Ag. de 2022
Did someone manage to solve this? In particular ''everytime I click again, it jumps to another view''

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 26 de Abr. de 2024
Editada: Adam Danz el 6 de Jun. de 2024
> ...the rotation of the axis is somehow buggy (everytime I klick again, it jumps to another view) and ... the cursor does not change when leaving the axis.
R2024a Update
The following improvements were made to rotation with point clouds in R2024a:
  • Rotation now requires clicking within the axes. Previously, you could click and rotate from anywhere in the figure which does not work nicely when the figure has sub plots.
  • The above eliminates the jump in rotation when the mouse clicks outside of the axes within the figure.
The cursor behavior has not changed.
  3 comentarios
Adam Danz
Adam Danz el 6 de Jun. de 2024
Hello @Joel Berkson. I just tested the following in R2024a and I have no problem with rotation.
To access xyzPoints.mat, call openExample('vision/CreatePointCloudObjectAndInspectPropertiesExample')
load("xyzPoints");
ptCloud = pointCloud(xyzPoints);
tiledlayout(2,2)
ax = nexttile();
pcshow(ptCloud)
If you're calling rotate3d, that may be toggling the rotation interaction off. If you're having trouble rotating the point cloud using this demo, please contact tech support.
Joel Berkson
Joel Berkson el 3 de Jul. de 2024 a las 17:25
I am only experienceing this problem in App Designer. Using 'Parent' as UIAxes creates this problem, I instead create an axes(app.Panel) in my app startupFcn and that seems to work. But, when I am in rotate mode, the cursor is in rotate mode across the entire app, not just in the axes.

Iniciar sesión para comentar.

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by