I have a three-dimensional surface dataset that is not a function graph. Data is just a bunch of dots in 3D, and the only thing I could think of was to try scatter3 in Matlab. Surf will not work because the surface is not a function graph.
Using scatter3 yielded a not-so-perfect result, as there is no perspective / shadowing of any kind.
Any thoughts? It should not be Matlab, but it is my source source for building.
To get an idea of ββthe type of surface I have, consider four images: 
The first is a 3D contour plot, the second is a slice in the {z = 1.8} plane of the contour. My goal is to collect all the red areas. I have a way to do this for each piece of {z = k}. This is the third plot, and I like the fact that I see a lot here.
Iterating over z will give a surface that is a 4th plot that is a bit noisy (although I have ideas to reduce the noise ...). If I paint only a black surface using scatter3 without a path, all I get is a black indistinguishable blob, but for each slice a smooth curve is produced, and I noticed that the curves change quite smoothly when I adjust z.
Some fine tuning will give a much better 4th plot, but even if I get a 4th plot, so as not to make any noise at all, the result using scatter3 will be a black incomprehensible blob when plotting one, and not on top of a three-dimensional contour. I would like to get a beautiful picture of a full surface that is not built on top of a 3D contour image ****
**** Actually, just to compare and show how bad scatter3 for surfaces, even if you had exact points on the sphere and used scatter3 , the result would be a black blob and would not even look like a ball ****
Can POV-Ray handle this? I have never used it ...
matlab plot povray
db1234
source share