How to perform an edge flip #197
-
Hi, could you tell me how to perform an edge flip for a given mesh? I’m currently working on a task where I’ve used a mesh's vertices as seeds to compute a restricted Delaunay triangulation in surfacic mode. I want to flip some of the edges between vertices in the triangulation to restore the connectivity structure of the original mesh. However, I seem to be unable to find any relevant functions for performing edge flips. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, there is no function to perform an edge flip in geogram, but you can easily implement it, by using |
Beta Was this translation helpful? Give feedback.
Hello, there is no function to perform an edge flip in geogram, but you can easily implement it, by using
mesh.facet_corners.set_vertex()
andmesh.facet_corners.set_opposite_facet()
. In the end it will be very similar tothis code in the constrained 2D triangulation but beware the indexing is different.