VertexNormals
is an option for graphics primitives which specifies the normal directions to assign to 3D vertices.
Details
- VertexNormals can be used with Polygon, Line, Point, and GraphicsComplex.
- VertexNormals->{n1,n2,…} specifies that vertex i should have effective normal ni for purposes of shading by simulated lighting.
- The ni are vectors of the form {vx,vy,vz}. Only the directions of these vectors ever matter; the vectors are in effect automatically normalized to unit length.
- VertexNormals->None specifies that no explicit vertex normals are being given, and normal directions should be deduced from the actual coordinates specified for vertices. For point and line-like primitives, no shading based on simulated lighting should be done.
- VertexNormals->Automatic is equivalent to VertexNormals->None, except that vertex normals given in any enclosing GraphicsComplex will be used.
Examples
open allclose allBasic Examples (1)
Scope (2)
Applications (3)
A function that visualizes the surface normals using lines:
Visualize the normals for some surfaces:
Vary the effective normals used on the surface:
A shaded mesh line object with data from ExampleData:
Text
Wolfram Research (2007), VertexNormals, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexNormals.html (updated 2008).
CMS
Wolfram Language. 2007. "VertexNormals." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/VertexNormals.html.
APA
Wolfram Language. (2007). VertexNormals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexNormals.html