Outputing a Colormap for 3D printing

Hi,
I am wondering if anyone knows of a way to output the colour map from a 3D plot (such as surf() or mesh()) so it can be converted used as a colour file for a VRML97 or X3D file.
I have a 3D plot that I want to 3D print and I have been able to successfully output a .stl file with the help of surf2solid and stlwrite, but I would like to be able to print the surface colour using shapeways colour ceramic service.
Anyhelp or pointers in the right direction would be appreciated.
Scott

1 comentario

Luca Piazza
Luca Piazza el 23 de Feb. de 2015
Movida: DGM el 3 de Jul. de 2025
Hi Scott,
do you have any update on this matter? I'm facing the same problem ;)
Thanks Luca

Iniciar sesión para comentar.

Respuestas (1)

Sean de Wolski
Sean de Wolski el 23 de Feb. de 2015
You can get the colormap from the figure and then the CData from the surface:
fig = figure;
s = surf(peaks);
cmap = fig.Colormap;
cdata = s.CData;
Now each index in cdata points to the color in that row of cmap.

Productos

Preguntada:

el 20 de En. de 2014

Movida:

DGM
el 3 de Jul. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by