Original Post
I need idea for c++ algorithm which can generate 2d mesh within polygon like this one:

or this one:

Mesh should look like this (or something similar) - it should consist of triangles:

Any idea is there already algorithm that can do this? Or what should I look in google to find solution?
Thanks!

or this one:

Mesh should look like this (or something similar) - it should consist of triangles:

Any idea is there already algorithm that can do this? Or what should I look in google to find solution?
Thanks!