artem-ogre / CDT

Constrained Delaunay Triangulation (C++)
https://artem-ogre.github.io/CDT/
Mozilla Public License 2.0
1.02k stars 129 forks source link

Would you please illustrate the algorithm of eraseOuterTriangles() and eraseOuterTrianglesAndHoles() #121

Closed GeoGroup closed 1 year ago

GeoGroup commented 1 year ago

Thanks for your excellent code. I am a liitle confused about the algorithm of eraseOuterTriangles() and eraseOuterTrianglesAndHoles(). For example, the growToBoundary in eraseOuterTriangles make me confused. Would you please add some illustration. As for the eraseOuterTriangles, what is the difference between this method and InPolygon?

Many Thanks.

artem-ogre commented 1 year ago

Hello @GeoGroup,

The removal of triangles works in the following way conceptually:

Please let me know if you need any further clarification.

GeoGroup commented 1 year ago

Thank for your reply. My problem is solved. Your solution is very simple and efficient!