How to do Delaunay triangulation?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mateusak

It seems Godot’s core already implemented Delaunay. So I was thinking if any classes use it and if I could hack my way around it using said class instead of writing it myself in not-so-fast GDScript. Anyone knows something about this?

:bust_in_silhouette: Reply From: eons

You can expose it to GDScript, check how other math functions are done, it usually is a couple of lines on the class db and the class where it will be added (search for expose on the repo PRs for examples).

Talk with core devs via IRC if you have intentions to add a PR too, because I think that triangulation libraries are going to change.