RE: Coloring a surface
- To: mathgroup at smc.vnet.net
- Subject: [mg39131] RE: [mg39083] Coloring a surface
- From: "David Park" <djmp at earthlink.net>
- Date: Thu, 30 Jan 2003 01:07:30 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Jean, You can use the 4th color directive argument in the parametrization with ParametricPlot3D. Here is an example. ParametricPlot3D[{Cos[t]Cos[p], Sin[t]Cos[p], Sin[p], Hue[(1 + Cos[t]Cos[p])/2]}, {p, -Pi/2, Pi/2}, {t, 0, 2Pi}, PlotPoints -> {20, 40}, Lighting -> False, ImageSize -> 450]; If you wish, I can show you how to make a nice contour plot with smooth edges on a sphere or other surface. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Jean P. [mailto:Jean.Pellegri at wanadoo.fr] To: mathgroup at smc.vnet.net I want plot and color a surface x=f(u,v), y=g(u,v), z=h(u,v) How to create a color function colorfunc[x,y,z] (or colorfunc[u,v]) that associate a color at each point of the surface ?? Thanks Scuse for my very bad english language !! Jean P.