Function to get array of faces from array of edges and positions

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

Hello,
I have a polygon saved as a list of vertices position and edges.
I need to get the array of faces from this only 2 previous arrays.
I am writing this function currently but sounds like I am redoing something people already made thousands times better than me. Is there something already implemented in Godot ?
Hi, and this is 2D.
(This is not a blender imported mesh and shall not be).
Thank you