How to plot 3D contours of temperature, on the 3D surface of the body !?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everybody
I've plotted a colored 3D surface of a human body using patch command.
My data includes a 3x1000 matrix of XYZ (vertices), a 1x1000 vector of colors (temperature), and a 3x3000 matrix of Faces. (a matrix that explains which points must be connected in order to shape the 3D surface.)
So I've plotted the colored 3D surface with the above data; There's no problem up to this point.
Now here is my question :
How can I plot some 3D contours (of temperature) on this 3D surface, which illustrate iso-temperature points on the body !!?
Actually, I want to plot something similar to the below picture (excluding the black dots, of course !!):
-
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
-
I've searched a lot on this, but nothing came to be useful.
I'd be thankful if you provide me some help on this topic.
4 comentarios
Jonathan Epperl
el 12 de Abr. de 2013
Editada: Jonathan Epperl
el 12 de Abr. de 2013
Maybe you could post a minimal example that we can copy&paste into Matlab? Do you know or could you obtain explicit expression for your contours? If so, then just plot them in there using plot3.
EDIT: countourslice might actually be what you are looking for
Respuestas (2)
Michael
el 12 de Abr. de 2013
Editada: Michael
el 12 de Abr. de 2013
My own suggestion might be to generate the 3D surface using g = surf(x), remove the edges using set(g,'EdgeColor','none'), and then color the pixel faces using your temperature data (say, C, which should be the same dimension as x) using set(g, 'CData', C). These properties are found in the "patch properties" of the documentation, you can mess with lighting and other things there as well.
John Mickett
el 7 de Ag. de 2019
Mathworks folks should be able to create a function for this. There are lots of people looking to do this and is an important way of visualizing a 3D surface. Surf works but why not have a function that can do contours instead of colors.
0 comentarios
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!