represents a filled polygon with points .
represents a collection of polygons.
- Polygon can be used as a geometric region and a graphics primitive.
- Polygon is a plane region, representing all the points inside the closed curve with line segments , …, , and . A point is an element of the polygon if a ray from the point in any direction in the plane crosses the boundary curve an odd number of times.
- As a geometric region, the points can have any length, but must all lie in a plane.
- Polygon can be used in Graphics and Graphics3D.
- Non-planar polygons are accepted in Graphics3D and are triangulated, but the result is not platform and view independent and may lead to surprising results.
- In graphics, the points can be Scaled, Offset, ImageScaled, and Dynamic expressions.
- Graphics renderings is affected by directives such as FaceForm, EdgeForm, Texture, Specularity, Opacity, and color.
- FaceForm[front,back] can be used to specify different styles for the front and back of polygons in 3D. The front is defined by the right-hand rule and the direction of the first three points.
- The following options and settings can be used in graphics:
VertexColors Automatic vertex colors to be interpolated VertexNormals Automatic effective vertex normals for shading VertexTextureCoordinates None coordinates for textures
CirclePoints gives the corner coordinates for a regular polygon:
Introduced in 1988
(1.0)| Updated in 2014