How to plot patch with point cloud
Afficher commentaires plus anciens
Hello MATLAB community!
So I am trying to plot a point cloud in the same plot as a patch. The patch is an enclosed surface and the point cloud should be mostly inside that surface. It works great if I say something like this pseudocode:
g = patch
plot(g)
hold on
h = pcshow(ptCloud)
And that's grand. But I want to add a for loop that plays a timeseries where each time point has a new point cloud in the same space. When I try to change anything, the axes get very messed up and I basically have to replot the entire thing for each time point. If I delete(g) or delete(h) the whole thing disappears. If I try to just say pcshow(ptCloud2) it plots it on top of the other cloud (because is hold on). I don't know enough about plotting patches or pcshow to understand what is happening here. Any insight would be much appreciated. Or if you can come up with a better approach.
Also, bonus points if you can tell me how to get rid of the axes that appear in the center of the plot every time I click and drag to rotate :)
Thanks!!
Brendan
Réponse acceptée
Plus de réponses (1)
Githin John
le 28 Jan 2020
Modifié(e) : Githin John
le 28 Jan 2020
1 commentaire
Brendan Balken
le 28 Jan 2020
Catégories
En savoir plus sur Point Cloud Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!