adding points to existing triangulated pointsets

Apr 23, 2015 at 5:06 PM
Hi,
Is it possible to feed new points to an already triangulated pointset such that only some edges are flipped instead of re-triangulate the whole new pointset? Regards, Adrian
Coordinator
Apr 23, 2015 at 5:58 PM
Edited Apr 23, 2015 at 5:58 PM
Well, there's an internal method of the Mesh class, with the following signature:
InsertVertexResult InsertVertex(Vertex newvertex, ref Otri searchtri, ref Osub splitseg,
            bool segmentflaws, bool triflaws)
Take a look at the source code comments to see how it works. I have no intent to make it public, but feel free to mess around with it.

A compromise could be to add a protected method, something like
protected bool InsertVertex(Vertex vertex, Triangle tri = null)
{
    // call internal InsertVertex
    // return true if vertex was inserted successfully
}
So, if needed, one could derive from Mesh and call the protected method ...
Apr 23, 2015 at 6:49 PM
Edited Apr 23, 2015 at 6:53 PM
Ok, thanks. I will try it out.