I would like to be able to insert random faces into a half edge, assuming the new face does not share any edge with more than one existing face.
There is one scenario which is proving quite difficult to implement. Hourglass/umbrella non manifold edges.
Say the top triangle was present and we are adding the new triangle. What we want is to attach the half edges in the boundary in such a way that they form a single non crossing chain. Without having to do any geometry measurements, only topological (i.e. connections).
This would be the result in this case:
it is suprisingly hard to do this in the general case and I keep running into configurations where the insertion fails, for example this one (The yellow dots are the vertices of a tentative new triangle).
I was hoping someone knows of a resource that talks about how to insert new faces into an existing half edge that covers these cases.


