Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

NormalsFunction

NormalsFunction
is an option for Plot3D and related functions that specifies a function to apply to determine the effective surface normals at every point.
  • The following settings can be given:
Nonedetermine normals from explicit polygon vertices
Automaticdetermine normals from overall surface properties
fdetermine normals by applying a function f
  • With NormalsFunction->f, the arguments supplied to f are as follows:
Plot3Dx, y, z
ParametricPlot3Dx, y, z, u, v
ContourPlot3Dx, y, z, w
RegionPlot3Dx, y, z
  • The function f must return a vector of the form {vx, vy, vz}. Only the direction of this vector matters; the vector is in effect automatically normalized to unit length.
Use automatic methods to compute surface normals:
In[1]:=
Click for copyable input
Out[1]=
 
Make the effective normals to the surface vary locally:
In[1]:=
Click for copyable input
Out[1]=
 
Use flat shading for all polygons:
In[1]:=
Click for copyable input
Out[1]=
New in 6
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team