This project is read-only.

adding points to existing triangulated pointsets

Apr 23, 2015 at 6:06 PM
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
Apr 23, 2015 at 6:58 PM
Edited Apr 23, 2015 at 6: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 7:49 PM
Edited Apr 23, 2015 at 7:53 PM
Ok, thanks. I will try it out.