Polygon
Usage
• Polygon[{ , , ... }] is a graphics primitive that represents a filled polygon.
Notes
• Polygon can be used in both Graphics and Graphics3D (two- and three-dimensional graphics). • 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}]. • Offset can be used to specify coordinates in two dimensions. • The boundary of a polygon is formed by joining the last point you specify to the first one. • In two dimensions, self-intersecting polygons are allowed. • 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. • You can use graphics directives such as GrayLevel and RGBColor to specify how polygons should be filled. • In three dimensions, the shading can be produced from simulated illumination. • In three-dimensional graphics, edges of polygons are shown as lines, with forms specified by the graphics directive EdgeForm. • In three-dimensional graphics, polygons are considered to have both front and back faces, with their normals taken to point to the front. • You can use FaceForm[front, back] to specify different properties for front and back faces. • By default, the normal direction for a polygon is determined by a right-hand rule, so that typically the first three vertices will be in a counterclockwise order when viewed from the front. • New in Version 1; modified in 3.
|