Products & Services
• Mobile Apps
• Services
Solutions
• Engineering, R&D
• Education
• Web & Software
• Finance, Statistics & Business Analysis
• Sciences
• Trends
Support & Learning
• Guided Learning
Company
• Work with Us
• Initiatives
•
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# Polygon

Polygon[{p1,,pn}]
represents a filled polygon with points .

Polygon[{{p11,},{p21,},}]
represents a collection of polygons.

## Details and OptionsDetails and Options

• 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

## ExamplesExamplesopen allclose all

### Basic Examples  (6)Basic Examples  (6)

Triangles:

 Out[1]=
 Out[2]=

Self-intersecting polygon:

 Out[1]=

Differently styled 2D polygons:

 Out[2]=

Differently styled 3D polygons:

 Out[2]=

Texture-mapped polygon:

 Out[1]=

Area:

 Out[1]=

Centroid:

 Out[2]=