How can I implement a Half Edge structure?

Hello!

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 : https://www.flipcode.com/archives/The_Half-Edge_Data_Structure.shtml

I’ve looked how Three JS does it with https://threejs.org/docs/#examples/en/math/convexhull/HalfEdge
But does it mean I need to create a function (for sure) but with arguments Facet and her Vertices ?

Thankfully.

Have a look at the implementation by @carolhmj

3 Likes