Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
Polygon
  • See Also
    • PolygonCoordinates
    • OuterPolygon
    • InnerPolygon
    • Triangle
    • Rectangle
    • Parallelogram
    • RegularPolygon
    • Simplex
    • CrossingPolygon
    • WindingPolygon
    • CanonicalizePolygon
    • RandomPolygon
    • MeshRegion
    • GeometricScene
  • Related Guides
    • Graphics Objects
    • Geometric Computation
    • Maps & Cartography
    • Polygons
    • Plane Geometry
    • Basic Geometric Regions
    • Precollege Education
    • Solid Geometry
    • Synthetic Geometry
    • Symbolic Graphics Language
  • Tech Notes
    • Three-Dimensional Graphics Primitives
    • Three-Dimensional Graphics Directives
    • The Structure of Graphics
    • See Also
      • PolygonCoordinates
      • OuterPolygon
      • InnerPolygon
      • Triangle
      • Rectangle
      • Parallelogram
      • RegularPolygon
      • Simplex
      • CrossingPolygon
      • WindingPolygon
      • CanonicalizePolygon
      • RandomPolygon
      • MeshRegion
      • GeometricScene
    • Related Guides
      • Graphics Objects
      • Geometric Computation
      • Maps & Cartography
      • Polygons
      • Plane Geometry
      • Basic Geometric Regions
      • Precollege Education
      • Solid Geometry
      • Synthetic Geometry
      • Symbolic Graphics Language
    • Tech Notes
      • Three-Dimensional Graphics Primitives
      • Three-Dimensional Graphics Directives
      • The Structure of Graphics

Polygon[{p1,…,pn}]

represents a filled polygon with points pi.

Polygon[{p1,…,pn}{{q1,…,qm},…}]

represents a polygon with holes {q1,…,qm},….

Polygon[{poly1,poly2,…}]

represents a collection of polygons polyi.

Polygon[{p1,…,pn},data]

represents a polygon in which coordinates given as integers i in data are taken to be pi.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Graphics  
Specification  
Styling  
Coordinates  
Regions  
Options  
VertexColors  
VertexNormals  
VertexTextureCoordinates  
Applications  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • PolygonCoordinates
    • OuterPolygon
    • InnerPolygon
    • Triangle
    • Rectangle
    • Parallelogram
    • RegularPolygon
    • Simplex
    • CrossingPolygon
    • WindingPolygon
    • CanonicalizePolygon
    • RandomPolygon
    • MeshRegion
    • GeometricScene
  • Related Guides
    • Graphics Objects
    • Geometric Computation
    • Maps & Cartography
    • Polygons
    • Plane Geometry
    • Basic Geometric Regions
    • Precollege Education
    • Solid Geometry
    • Synthetic Geometry
    • Symbolic Graphics Language
  • Tech Notes
    • Three-Dimensional Graphics Primitives
    • Three-Dimensional Graphics Directives
    • The Structure of Graphics
    • See Also
      • PolygonCoordinates
      • OuterPolygon
      • InnerPolygon
      • Triangle
      • Rectangle
      • Parallelogram
      • RegularPolygon
      • Simplex
      • CrossingPolygon
      • WindingPolygon
      • CanonicalizePolygon
      • RandomPolygon
      • MeshRegion
      • GeometricScene
    • Related Guides
      • Graphics Objects
      • Geometric Computation
      • Maps & Cartography
      • Polygons
      • Plane Geometry
      • Basic Geometric Regions
      • Precollege Education
      • Solid Geometry
      • Synthetic Geometry
      • Symbolic Graphics Language
    • Tech Notes
      • Three-Dimensional Graphics Primitives
      • Three-Dimensional Graphics Directives
      • The Structure of Graphics

Polygon

Polygon[{p1,…,pn}]

represents a filled polygon with points pi.

Polygon[{p1,…,pn}{{q1,…,qm},…}]

represents a polygon with holes {q1,…,qm},….

Polygon[{poly1,poly2,…}]

represents a collection of polygons polyi.

Polygon[{p1,…,pn},data]

represents a polygon in which coordinates given as integers i in data are taken to be pi.

Details and Options

  • Polygon can be used as a geometric region and a graphics primitive.
  • Polygon[{p1,…,pn}] is a plane region, representing all the points inside the closed curve with line segments {p1,p2},…,{pn-1,pn} and {pn,p1}.
  • A point is an element of the polygon if a ray from the point in any direction in the plane crosses the boundary line segments an odd number of times.
  • Polygon[{p1,…,pn}{{q1,…,qm},…}] specifies a polygon with holes consisting of an outer polygon Polygon[{p1,…,pn}] and one or several inner polygons Polygon[{q1,…,qm}],….
  • A point is an element of the polygon if it is in the outer polygon but not in any inner polygon.
  • Polygon[{poly1,poly2,…}] is a collection of polygons polyi with or without holes and is treated as a union of polyi for geometric computations.
  • Polygon[{p1,…,pn},data] effectively replaces integers i that appear as coordinates in data by the corresponding pi.
  • Polygon[{p1,…,pn},{b1,…,bn}]polygon boundary points {pb1,…,pbk}
    Polygon[{p1,…,pn},{{o1,…,ok}{{i1,…,il},…}]outer polygon boundary points {po1,…,pok} and inner polygon boundary {pi1,…,pil} etc.
    Polygon[{p1,…,pn},{{b1,…,bn},{o1,…,ok}{{i1,…,il},…},…}]a collection of several polygons
  • As a geometric region, the points pi can have any embedding dimension, but must all lie in a plane and have the same embedding dimension.
  • In a graphic, the points pi can be Scaled, Offset, ImageScaled and Dynamic expressions.
  • Graphics rendering 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 Automaticvertex colors to be interpolated
    VertexNormals Automaticeffective vertex normals for shading
    VertexTextureCoordinates Nonecoordinates for textures
  • Polygon can be used with symbolic points in GeometricScene.

Examples

open all close all

Basic Examples  (2)

A polygon:

Its graphic image:

Its area:

Differently styled 3D polygons:

Scope  (21)

Graphics  (11)

Specification  (2)

A collection of polygons:

Polygons with multiple vertices:

Styling  (6)

Color directives specify the face colors of polygons:

Texture can be used to specify a texture to be used on the faces of polygons:

Texture can work together with different Opacity:

Texture can work together with different Lighting:

FaceForm and EdgeForm can be used to specify the styles of the interiors and boundaries:

In 3D, different properties can be specified for the front and back of faces using FaceForm:

Use FaceForm to set front and back textures differently in 3D:

Colors can be specified at vertices using VertexColors:

Normals can be specified at vertices using VertexNormals for 3D polygons:

Coordinates  (3)

Use Scaled coordinates:

Use ImageScaled coordinates in 2D:

Use Offset coordinates in 2D:

Regions  (10)

Embedding dimension:

Geometric dimension:

Point membership test:

Get conditions for point membership:

Area:

Centroid:

Distance from a point:

Plot it:

Signed distance from a point:

Plot it:

Nearest point in the region:

Nearest points:

A polygon is bounded:

Get its range:

Integrate over a polygon:

Optimize over a polygon:

Solve equations in a polygon:

Options  (7)

VertexColors  (2)

Polygon with vertex colors:

Specify vertex colors for 3D polygons:

VertexNormals  (1)

Compute normal vectors using the cross product of edge vectors:

A triangle with normals pointing in the direction {1,-1,1}:

Using different normals will affect shading:

VertexTextureCoordinates  (4)

Texture-mapped polygon:

Texture mapping with 2D polygons:

Texture mapping with 3D polygons:

Repeat a texture by using non-unified texture coordinate values:

Texture mapping is preceded by VertexColors:

Applications  (3)

Define a polygon with vertices:

Regular polygons:

Star polygons:

Define the regular hexagon:

Regular hexagonal tiling:

Get face polygons from PolyhedronData:

Shrink each face with respect to the centroid:

Properties & Relations  (4)

GraphicsComplex offers an efficient way to generate a polygon with many shared vertices:

Applying Normal to the graphics complex produces ordinary polygons:

Polygon is a generalization of Triangle:

Polygon is a generalization of Rectangle:

A Simplex with three vertices is a special case of Polygon:

In any number of dimensions starting from 2:

Possible Issues  (3)

In 3D, if the vertices are not in a plane, the polygon triangulation can be unpredictable:

Degenerate polygons are not valid geometric regions:

Seams can sometimes appear between individual polygons as a result of antialiasing:

Using a single polygon object avoids any seams:

Neat Examples  (3)

Random triangle collections:

Digital petals:

A rotating star:

See Also

PolygonCoordinates  OuterPolygon  InnerPolygon  Triangle  Rectangle  Parallelogram  RegularPolygon  Simplex  CrossingPolygon  WindingPolygon  CanonicalizePolygon  RandomPolygon  MeshRegion  GeometricScene

Function Repository: Trapezoid  Rhombus  SphericalPolygon  HyperbolicPoincarePolygon  NotchedPolygon  RoundedPolygon  PrimitiveToPolygons  PerforatePolygons  PolygonNormalVector

Tech Notes

    ▪
  • Three-Dimensional Graphics Primitives
  • ▪
  • Three-Dimensional Graphics Directives
  • ▪
  • The Structure of Graphics

Related Guides

    ▪
  • Graphics Objects
  • ▪
  • Geometric Computation
  • ▪
  • Maps & Cartography
  • ▪
  • Polygons
  • ▪
  • Plane Geometry
  • ▪
  • Basic Geometric Regions
  • ▪
  • Precollege Education
  • ▪
  • Solid Geometry
  • ▪
  • Synthetic Geometry
  • ▪
  • Symbolic Graphics Language

Related Links

  • An Elementary Introduction to the Wolfram Language : Coordinates and Graphics

History

Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2019 (12.0)

Wolfram Research (1988), Polygon, Wolfram Language function, https://reference.wolfram.com/language/ref/Polygon.html (updated 2019).

Text

Wolfram Research (1988), Polygon, Wolfram Language function, https://reference.wolfram.com/language/ref/Polygon.html (updated 2019).

CMS

Wolfram Language. 1988. "Polygon." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Polygon.html.

APA

Wolfram Language. (1988). Polygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Polygon.html

BibTeX

@misc{reference.wolfram_2025_polygon, author="Wolfram Research", title="{Polygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Polygon.html}", note=[Accessed: 01-March-2026]}

BibLaTeX

@online{reference.wolfram_2025_polygon, organization={Wolfram Research}, title={Polygon}, year={2019}, url={https://reference.wolfram.com/language/ref/Polygon.html}, note=[Accessed: 01-March-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English