Industrial Data Science
in C# and .NET:
Simple. Fast. Reliable.
 
 

ILNumerics - Technical Computing

Modern High Performance Tools for Technical

Computing and Visualization in Industry and Science

tgt

Surface Lighting

Lighting can drastically enhance the beauty of all 3D visualizations. However, for Surface Plots the readability of colors is important. And lighting can diminish the readability, since it alters colors depending on view angle and light configuration. This might make it more difficult for the observer to compare colors between different regions of the plots and to match colors with the colorbar.

Therefore, lighting is disabled for surface plots by default. In order to activate lighting, the Surface.UseLighting property is used. After setting UseLighting to true, all common lighting options exist: multiple lights, colored lights, material configuration and the like (See: Lighting section).

The next example creates a surface plot in single color mode and activates lighting:

In the example, the surface properties Fill and Wireframe are used to set corresponding colors explicitely. Alternatively, the Surface.UpdateSolidColor(Color,InArray<float>) method is used to alter the surface' color or data after creation dynamically.