Shading a Surface Using Mesh

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Mathematica supplies a useful way to apply shading to 3D plots when a mesh lies over the figure (here, an ellipsoid).

Contributed by: David von Seggern (May 2012)
(University of Nevada)
Open content licensed under CC BY-NC-SA



The resolution of the mesh is defined using the built-in Mathematica Mesh option. The option MeshShading then lets you define the pattern of the mesh shading. This can be made fairly complex, but in this Demonstration, only 2×2 matrices were used.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.