I have a 3D volume and a 3D point cloud. How can I draw the point cloud, along with an isosurface of the volume, without overwriting the scatter plot? Using patch to draw the isosurface always wipes away the scatter3 plot.
I have a 3D volume and a 3D point cloud. How can I draw
Share
Some things to try.
Draw the surface use patches first. (
h = patch(...), then sethold on)Make the patches semi-transparent. This will let you see if the scatter items are still there, just hidden. It also tells the renderer that everything needs to be plotted, which can prevent some sorts of graphics bugs.
set(h,'faceAlpha',0.5)Try using
plot3instead ofscatter3. This does not allow you to change individual marker sizes or colors, but it is much easier on Matlab. Even if you need thescatter3features, this is worth trying as a debugging step.