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 all close all

Basic Examples  (1)

Get the vertex coordinates from a Polygon:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Scope  (2)

Properties & Relations  (3)

Introduced in 2019
(12.0)