MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: To color surfaces using z values with ContourPlot3D


Hi,

what is with

poly = ContourPlot3D[Evaluate[eq], {x, -1, 3/2}, {y, -1, 3/2}, {z, -1,
3/2},
       PlotPoints -> 35, Axes -> Truel,DisplayFunction->Identity];

Show[poly /. 
    Polygon[pnts_] :> {Hue[(Last[Plus @@ #/Length[#] &[pnts]] + 1)/2.5], 
        Polygon[pnts]}, Lighting ->
False,DisplayFunction->$DisplayFunction]


Regards
  Jens

Valeria Olivati wrote:
> 
> Hallo eveybody,
> 
> I'm a student of Mathematics at University of Pavia, Italy.
> 
> I start using Mathematica 4 two months ago, and I need to plot a cubic
> function and color it without using LightSources. I use ContourPlot3D to
> plot the function but I don't know how to color the surface using the z
> values, as you can do using Plot3D and ColorFunction->Hue.
> I cannot use Plot3D because the function is quite complicated:


  • Prev by Date: Re: Integrate returns 0
  • Next by Date: problems saving and opening notebooks using menus
  • Previous by thread: To color surfaces using z values with ContourPlot3D
  • Next by thread: Re: To color surfaces using z values with ContourPlot3D