OuterPolygon

OuterPolygon[poly]

gives the outer polygon of the polygon poly.

Details

  • OuterPolygon is also known as polygon outer ring.
  • Typically used to decompose a polygon as a difference of simple polygons, even when the original construction of the polygon was using crossing curves etc.
  • OuterPolygon is defined by the canonicalization performed in CanonicalizePolygon.
  • OuterPolygon gives a polygon of the form Polygon[{p1,p2,},{{i1,i2,},}], where pk are explicit coordinates, and ik are integer indexes referring to coordinates in the list {p1,p2,}.
  • In general, the result will be a Polygon object representing a disjoint union of simple polygons.

Examples

open all close all

Basic Examples  (1)

Get the outer polygon 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  (2)

Introduced in 2019
(12.0)