PolygonCoordinates

PolygonCoordinates[poly]

gives a list of coordinates in the polygon poly.

Details

  • PolygonCoordinates is also known as polygon vertex coordinates.
  • PolygonCoordinates is defined by the canonicalization performed in CanonicalizePolygon.
  • PolygonCoordinates gives a list of coordinates {p1,p2,}.
  • For a polygon with self-intersections, the resulting coordinate list will also include intersection points.
  • For a polygon defined with repeated coordinates, the resulting coordinate list removes duplicate coordinates.

Examples

open allclose all

Basic Examples  (1)

Get the vertex coordinates from a Polygon:

Scope  (6)

PolygonCoordinates works on polygons:

Triangle:

Rectangle:

PolygonCoordinates works on polygons of geographic entities:

Polygons with GeoPosition:

Polygons with GeoPositionXYZ:

Polygons with GeoPositionENU:

PolygonCoordinates works on polygons with GeoGridPosition:

Polygon with holes:

Polygons with disconnected components:

Polygons in :

Properties & Relations  (3)

Using CanonicalizePolygon to get polygon coordinates:

Using MeshCoordinates to get polygon coordinates:

A simple polygon has the same polygon coordinates as its OuterPolygon:

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

Text

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2020_polygoncoordinates, organization={Wolfram Research}, title={PolygonCoordinates}, year={2019}, url={https://reference.wolfram.com/language/ref/PolygonCoordinates.html}, note=[Accessed: 02-March-2021 ]}

CMS

Wolfram Language. 2019. "PolygonCoordinates." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PolygonCoordinates.html.

APA

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