SimplePolygonQ
✖
SimplePolygonQ
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Test whether a polygon is simple:
https://wolfram.com/xid/0n4fz27achv-4ub3ke
https://wolfram.com/xid/0n4fz27achv-rkizf2
SimplePolygonQ gives False for non-simple polygons:
https://wolfram.com/xid/0n4fz27achv-j9sy8x
https://wolfram.com/xid/0n4fz27achv-9bwmtc
Scope (5)Survey of the scope of standard use cases
SimplePolygonQ works on polygons:
https://wolfram.com/xid/0n4fz27achv-cpw0pk
https://wolfram.com/xid/0n4fz27achv-nc5g0k
https://wolfram.com/xid/0n4fz27achv-3o58n0
https://wolfram.com/xid/0n4fz27achv-ruxc6r
https://wolfram.com/xid/0n4fz27achv-kqhcfa
https://wolfram.com/xid/0n4fz27achv-ho2agf
https://wolfram.com/xid/0n4fz27achv-w46hef
https://wolfram.com/xid/0n4fz27achv-h1pvwe
Polygons with disconnected components:
https://wolfram.com/xid/0n4fz27achv-inu7wu
https://wolfram.com/xid/0n4fz27achv-npcjle
https://wolfram.com/xid/0n4fz27achv-e1thk8
https://wolfram.com/xid/0n4fz27achv-4qfgdy
Applications (2)Sample problems that can be solved with this function
Generate random polygons for testing algorithms and verification of time complexity:
https://wolfram.com/xid/0n4fz27achv-uwfgll
https://wolfram.com/xid/0n4fz27achv-rfz1gt
https://wolfram.com/xid/0n4fz27achv-b30lc3
Time complexity for algorithms for simple polygons:
https://wolfram.com/xid/0n4fz27achv-qj1z3e
https://wolfram.com/xid/0n4fz27achv-lhrb1f
Polygon classification using machine learning. Train a classifier function on polygon examples:
https://wolfram.com/xid/0n4fz27achv-qvoctg
https://wolfram.com/xid/0n4fz27achv-h9jsbn
Use the classifier function to classify new polygons:
https://wolfram.com/xid/0n4fz27achv-qw0snw
https://wolfram.com/xid/0n4fz27achv-1tu3rl
https://wolfram.com/xid/0n4fz27achv-wuyym3
https://wolfram.com/xid/0n4fz27achv-7l1pq5
https://wolfram.com/xid/0n4fz27achv-h9giye
https://wolfram.com/xid/0n4fz27achv-rbiptp
https://wolfram.com/xid/0n4fz27achv-b7ktjr
Properties & Relations (5)Properties of the function, and connections to other functions
https://wolfram.com/xid/0n4fz27achv-r62rjj
https://wolfram.com/xid/0n4fz27achv-8pejw4
https://wolfram.com/xid/0n4fz27achv-81m2lg
The OuterPolygon of a simple polygon is simple:
https://wolfram.com/xid/0n4fz27achv-nfp4bk
https://wolfram.com/xid/0n4fz27achv-r9q3gj
https://wolfram.com/xid/0n4fz27achv-fekzs4
Simple polygons do not have holes:
https://wolfram.com/xid/0n4fz27achv-gc2sj2
Use PolygonDecomposition to decompose a polygon into simple polygons:
https://wolfram.com/xid/0n4fz27achv-zsmmgz
https://wolfram.com/xid/0n4fz27achv-5rciz0
https://wolfram.com/xid/0n4fz27achv-kflftz
Use RandomPolygon to generate a simple polygon:
https://wolfram.com/xid/0n4fz27achv-lls03k
https://wolfram.com/xid/0n4fz27achv-gocq6x
The number of edges of a simple polygon always equals the number of vertices:
https://wolfram.com/xid/0n4fz27achv-h0c1xh
https://wolfram.com/xid/0n4fz27achv-bt3yzy
Possible Issues (1)Common pitfalls and unexpected behavior
For nonconstant polygons, SimplePolygonQ returns False:
https://wolfram.com/xid/0n4fz27achv-dft85s
https://wolfram.com/xid/0n4fz27achv-d4damb
https://wolfram.com/xid/0n4fz27achv-2varjo
Wolfram Research (2019), SimplePolygonQ, Wolfram Language function, https://reference.wolfram.com/language/ref/SimplePolygonQ.html.
Text
Wolfram Research (2019), SimplePolygonQ, Wolfram Language function, https://reference.wolfram.com/language/ref/SimplePolygonQ.html.
Wolfram Research (2019), SimplePolygonQ, Wolfram Language function, https://reference.wolfram.com/language/ref/SimplePolygonQ.html.
CMS
Wolfram Language. 2019. "SimplePolygonQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SimplePolygonQ.html.
Wolfram Language. 2019. "SimplePolygonQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SimplePolygonQ.html.
APA
Wolfram Language. (2019). SimplePolygonQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SimplePolygonQ.html
Wolfram Language. (2019). SimplePolygonQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SimplePolygonQ.html
BibTeX
@misc{reference.wolfram_2024_simplepolygonq, author="Wolfram Research", title="{SimplePolygonQ}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/SimplePolygonQ.html}", note=[Accessed: 10-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_simplepolygonq, organization={Wolfram Research}, title={SimplePolygonQ}, year={2019}, url={https://reference.wolfram.com/language/ref/SimplePolygonQ.html}, note=[Accessed: 10-January-2025
]}