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 allBasic Examples (1)
Get the vertex coordinates from a Polygon:
Scope (6)
PolygonCoordinates works on polygons:
PolygonCoordinates works on polygons of geographic entities:
Polygons with GeoPosition:
Polygons with GeoPositionXYZ:
Polygons with GeoPositionENU:
PolygonCoordinates works on polygons with GeoGridPosition:
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:
Text
Wolfram Research (2019), PolygonCoordinates, Wolfram Language function, https://reference.wolfram.com/language/ref/PolygonCoordinates.html.
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