InnerPolygonCopy to clipboard.
✖
InnerPolygon
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 allBasic Examples (1)Summary of the most common use cases
Get the inner polygon of a Polygon:
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-7r2zy5
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-r5wf3s
Direct link to example
Out[2]=2
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-3gol8u
Direct link to example
Out[2]=2
Scope (6)Survey of the scope of standard use cases
InnerPolygon works on polygons:
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-cpw0pk
Direct link to example
Out[2]=2
Copy to clipboard.
In[3]:=3
✖
https://wolfram.com/xid/09buknh5m-5e7qzs
Direct link to example
Out[3]=3
Copy to clipboard.
In[4]:=4
✖
https://wolfram.com/xid/09buknh5m-3o58n0
Direct link to example
Out[4]=4
Copy to clipboard.
In[6]:=6
✖
https://wolfram.com/xid/09buknh5m-ruxc6r
Direct link to example
Out[6]=6
InnerPolygon works on polygons with GeoPosition:
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-1lk1dy
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-8vjhh8
Direct link to example
Out[2]=2
Polygons with GeoGridPosition:
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-ipsiqu
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-yjciq7
Direct link to example
Out[2]=2
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-kqhcfa
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-ho2agf
Direct link to example
Out[2]=2
Copy to clipboard.
In[3]:=3
✖
https://wolfram.com/xid/09buknh5m-y93bcf
Direct link to example
Out[3]=3
Polygons with disconnected components:
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-inu7wu
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-npcjle
Direct link to example
Out[2]=2
Copy to clipboard.
In[3]:=3
✖
https://wolfram.com/xid/09buknh5m-wc22ib
Direct link to example
Out[3]=3
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-e1thk8
Direct link to example
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-4qfgdy
Direct link to example
Out[2]=2
Properties & Relations (1)Properties of the function, and connections to other functions
InnerPolygon of a simple polygon is an empty polygon:
Copy to clipboard.
In[1]:=1
✖
https://wolfram.com/xid/09buknh5m-m7mrer
Direct link to example
Out[1]=1
Copy to clipboard.
In[2]:=2
✖
https://wolfram.com/xid/09buknh5m-8oeovp
Direct link to example
Out[2]=2
Copy to clipboard.
In[3]:=3
✖
https://wolfram.com/xid/09buknh5m-e3o8y7
Direct link to example
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
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
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
]}