WOLFRAM

InnerPolygon
Copy to clipboard.
InnerPolygon

Copy to clipboard.
InnerPolygon[poly]

gives the inner polygon of the polygon poly.

Details

  • InnerPolygon is also known as inner ring or hole.
  • 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.
  • InnerPolygon is defined by the canonicalization performed in CanonicalizePolygon.
  • InnerPolygon 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,}.
  • If poly is a polygon without a hole, then the result is an EmptyRegion object.

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

Get the inner polygon of a Polygon:

Out[2]=2
Out[2]=2

Scope  (6)Survey of the scope of standard use cases

InnerPolygon works on polygons:

Out[2]=2
Out[3]=3

Triangle:

Out[4]=4

Rectangle:

Out[6]=6

InnerPolygon works on polygons with GeoPosition:

Out[2]=2

Polygons with GeoGridPosition:

Out[2]=2

Polygon with holes:

Out[2]=2
Out[3]=3

Polygons with disconnected components:

Out[2]=2
Out[3]=3

Polygons in :

Out[2]=2

Properties & Relations  (1)Properties of the function, and connections to other functions

InnerPolygon of a simple polygon is an empty polygon:

Out[1]=1
Out[2]=2
Out[3]=3
Wolfram Research (2019), InnerPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/InnerPolygon.html.
Copy to clipboard.
Wolfram Research (2019), InnerPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/InnerPolygon.html.

Text

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

Copy to clipboard.
Wolfram Research (2019), InnerPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/InnerPolygon.html.

CMS

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

Copy to clipboard.
Wolfram Language. 2019. "InnerPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InnerPolygon.html.

APA

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

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

BibTeX

@misc{reference.wolfram_2024_innerpolygon, author="Wolfram Research", title="{InnerPolygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/InnerPolygon.html}", note=[Accessed: 10-January-2025 ]}

Copy to clipboard.
@misc{reference.wolfram_2024_innerpolygon, author="Wolfram Research", title="{InnerPolygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/InnerPolygon.html}", note=[Accessed: 10-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_innerpolygon, organization={Wolfram Research}, title={InnerPolygon}, year={2019}, url={https://reference.wolfram.com/language/ref/InnerPolygon.html}, note=[Accessed: 10-January-2025 ]}

Copy to clipboard.
@online{reference.wolfram_2024_innerpolygon, organization={Wolfram Research}, title={InnerPolygon}, year={2019}, url={https://reference.wolfram.com/language/ref/InnerPolygon.html}, note=[Accessed: 10-January-2025 ]}