-
Hello, GoostGeometry2D.polygon_centroid says
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? I'm currently using this, but also not sure if it's entirely bug-free:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
PS just saw the notes around strict simplicity on PolyBoolean2D doc, so perhaps this extra func I'm asking about is not needed. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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).