Three‐Dimensional Graphics Directives
Just as in two dimensions, you can use the directives PointSize, Thickness, and Dashing to tell the Wolfram System how to render Point and Line elements. Note that in three dimensions, the lengths that appear in these directives are measured as fractions of the total width of the display area for your plot.
In two dimensions, polygons are always assumed to have an intrinsic color, specified directly by graphics directives such as RGBColor and Opacity. In three dimensions, however, the Wolfram System generates colors for polygons using a more physical approach based on simulated illumination. Polygons continue to have an intrinsic color defined by color directives, but the final color observed when rendering the graphic may be different based upon the values of the lights shining on the polygon. Polygons are intrinsically white by default.
|Lighting->Automatic||use default light placements and values|
|Lighting->None||disable all lights|
|Lighting->"Neutral"||light using only white light sources|
|EdgeForm||draw no lines at the edges of polygons|
|EdgeForm[g]||use the graphics directives g to determine how to draw lines at the edges of polygons|
When you render a three‐dimensional graphics object in the Wolfram System, there are two kinds of lines that can appear. The first kind is lines from explicit Line primitives that you included in the graphics object. The second kind is lines that were generated as the edges of polygons.
You can tell the Wolfram System how to render all lines of the second kind by giving a list of graphics directives inside EdgeForm.
|FaceForm[gfront,gback]||use gfront graphics directives for the front face of each polygon, and gback for the back|
An important aspect of polygons in three dimensions is that they have both front and back faces. The Wolfram System uses the following convention to define the "front face" of a polygon: if you look at a polygon from the front, then the corners of the polygon will appear counterclockwise, when taken in the order that you specified them.