FaceForm

FaceForm[g]

is a graphics directive which specifies that faces of polygons and other filled graphics objects are to be drawn using the graphics directive or list of directives g.

FaceForm[g,gback]

specifies that the front faces of three-dimensional polygons should be drawn with directives g, and the backs with directives gback.

Details

  • FaceForm[] draws no faces.
  • FaceForm works in both 2D and 3D.
  • Color, opacity, surface color directives, textures, and materials can be used in FaceForm.
  • FaceForm applies to Polygon, Disk, and Rectangle objects.
  • In three dimensions, specifications given outside of FaceForm apply to both front and back faces of polygons.
  • The front face of a polygon is defined to be the one for which the corners as you specify them are in counterclockwise order (righthand rule).
  • FaceForm[None,gback] specifies that front faces should not be drawn. »

Examples

open allclose all

Basic Examples  (2)

Specify the style of edges and faces:

Specify different properties for the front and back of faces:

Applications  (1)

Use FaceForm to specify styling for polygons generated by plot functions:

Color the inside and outside differently:

Properties & Relations  (2)

FaceForm[] is used to specify that the front faces should not be drawn:

You can use a different style for front and back faces, including None and Opacity:

Introduced in 1988
 (1.0)
 |
Updated in 2007
 (6.0)
2010
 (8.0)
2012
 (9.0)