SimplePolygonQ

SimplePolygonQ[poly]

gives True if the polygon poly is simple and False otherwise.

Details

  • A polygon is simple if it has no holes and non-intersecting boundary line segments.
  • A simple polygon is topologically equivalent to a disk.

Examples

open all close all

Basic Examples  (2)

Test whether a polygon is simple:

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

SimplePolygonQ gives False for non-simple polygons:

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

Scope  (5)

Applications  (2)

Properties & Relations  (5)

Possible Issues  (1)

Introduced in 2019
(12.0)