How to color a 3D surface
- To: mathgroup at smc.vnet.net
- Subject: [mg102960] How to color a 3D surface
- From: CL <cliu at lanl.gov>
- Date: Thu, 3 Sep 2009 05:39:19 -0400 (EDT)
Hi, Mathematica experts, I have a data list {{x1, y1, z1, w1}, ..., {xn, yn, zn, wn,}}, where {x, y, z} specifies location in 3D. I can use ListPlot3D[{{x1, y1, z1}, ..., {xn, yn, zn}}] to generate the 3D shape of the object. But I would like to color the object according to the values of {w1, ..., wn}. Is there a simple way of doing that? I thought of using the ColorFunction but haven't figured out how to do it. Thanks in advance. CL