Skip to content

How to know if a polygon is simple #129

Answered by Xrayez
opyate asked this question in Q&A
Discussion options

You must be logged in to vote

I looked through the doc and couldn't find a function for determining if a polygon is strictly simple. Could this be a useful feature to add to Goost?

Yes because this kind of method was also proposed at Godot's proposals as well. I see you linked godotengine/godot-proposals#1389!

Performance-wise it may be faster to do merge operation on input polygons (even when no set of polygons need to be actually merged).

Nonetheless, implementing is_polygon_simple() method would be alright, but I haven't needed such a method myself to be honest (perhaps it may be useful for procedural generation purposes as well, I presume).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@opyate
Comment options

Answer selected by opyate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants