This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Graphics and Sound / Graphics Primitives /

Polygon

FilledSmallSquare Polygon[, , ... ] is a graphics primitive that represents a filled polygon.

FilledSmallSquare Polygon can be used in both Graphics and Graphics3D (two- and three-dimensional graphics).

FilledSmallSquare The positions of points can be specified either in ordinary coordinates as x, y or x, y, z, or in scaled coordinates as Scaled[x, y] or Scaled[x, y, z].

FilledSmallSquare Offset can be used to specify coordinates in two dimensions.

FilledSmallSquare The boundary of the polygon is formed by joining the last point you specify to the first one.

FilledSmallSquare In two dimensions, self-intersecting polygons are allowed.

FilledSmallSquare In three dimensions, planar polygons that do not intersect themselves will be drawn exactly as you specify them. Other polygons will be broken into triangles.

FilledSmallSquare You can use graphics directives such as GrayLevel and RGBColor to specify how polygons should be filled.

FilledSmallSquare In three dimensions, the shading can be produced from simulated illumination.

FilledSmallSquare In three-dimensional graphics, polygons are considered to have both a front and a back face. The sense of a polygon is defined in terms of its first three vertices. When taken in order, these vertices go in a counterclockwise direction when viewed from the front. (The frontward normal is thus obtained from a right-hand rule.)

FilledSmallSquare You can use FaceForm to specify colors for the front and back faces of polygons.

FilledSmallSquare In three-dimensional graphics, edges of polygons are shown as lines, with forms specified by the graphics directive EdgeForm.

FilledSmallSquare See Section 2.10.1, Section 2.10.2 and Section 2.10.8.

FilledSmallSquare See also: Raster, Rectangle, Cuboid, SurfaceColor.

FilledSmallSquare Related packages: Geometry`Polytopes`, Graphics`Polyhedra`.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples