hiulit / Delaunator-GDScript

A GDScript port of Delaunator: A fast library for Delaunay triangulation of 2D points.
MIT License
80 stars 8 forks source link

The "Start a new discussion" link is dead #4

Open DingboDingboDingbo opened 2 years ago

DingboDingboDingbo commented 2 years ago

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

DrAlta commented 2 years ago

https://docs.godotengine.org/en/stable/classes/class_geometry.html#class-geometry-method-triangulate-delaunay-2d

DrAlta commented 2 years ago

For 4 that would be https://docs.godotengine.org/en/latest/classes/class_geometry2d.html#class-geometry2d-method-triangulate-delaunay

DingboDingboDingbo commented 2 years ago

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.

hiulit commented 1 year ago

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