Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Coloring surfaces in Mathematica

  1. Dec 29, 2008 #1
    Hi, all,

    I have a question about coloring a 3D parametric surface in Mathematica.

    Setup:

    Take as given a surface M in R^3 and a parameterization of that surface p:[a,b] x [c,d] -> R^3. Let f:M -> R be a function defined on M.

    Question:

    How can I plot this surface so that points p with f(p) >= 0 are colored white and points p with f(p) < 0 are colored gray?

    Notes:

    I'm using ParametricPlot3D and trying to work with the ColorFunction -> Function construct, but can't quite get it right.

    Thanks in advance!

    P
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted