Mathematica Coloring surfaces in Mathematica

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
 

Want to reply to this thread?

"Coloring surfaces in Mathematica" You must log in or register to reply here.

Related Threads for: Coloring surfaces in Mathematica

Replies
0
Views
3K
Replies
0
Views
2K
Replies
0
Views
2K
Replies
0
Views
1K
Replies
0
Views
2K
Replies
0
Views
2K
Replies
0
Views
5K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top