How can I implement a Half Edge structure?


I need to implement a Half Edge structure in my project but I really don’t understand how can I do it. Do I need to restructure all the component like Facet, Vertices and add Edge, Half Edge ?

I’m currently following this tutorial :

I’ve looked how Three JS does it with
But does it mean I need to create a function (for sure) but with arguments Facet and her Vertices ?


Have a look at the implementation by @carolhmj