Delaunator-GDScript
Delaunator-GDScript copied to clipboard
The "Start a new discussion" link is dead
I was having trouble getting the code to run in the Godot 4 alpha, and since it's not reasonable to start a new issue for that, I was hoping to see what else I could do! The link currently takes me to a 404 page
https://docs.godotengine.org/en/stable/classes/class_geometry.html#class-geometry-method-triangulate-delaunay-2d
For 4 that would be https://docs.godotengine.org/en/latest/classes/class_geometry2d.html#class-geometry2d-method-triangulate-delaunay
I'm actually trying to get the voronoi representation, and am just very confused as to why this doesn't work in Godot 4. I opened the example in Godot 4. Then I switched to the "Packed" classes before posting here. If you do that, and then adjust the demo function names to not be the same as the booleans (draw_triangles, draw_voronoi_cells, etc.), and set it to draw the voronoi cells it will go out of bounds at some point.
Maybe I should be moving this to its own issue? It just feels improper to do so due to the fact that this isn't meant to be used in Godot 4.
I haven't had time to try Godot 4, but maybe it has something to do with this? https://github.com/hiulit/Delaunator-GDScript/issues/5