Draggable texture mesh editor

Hello everybody,
i am new to ofx, and i am trying to build a mesh editor, where i could build a mesh on top of a texture by adding vertex (mouse click) and then move around my vertex by clicking on them and dragging them to deform my texture. Any advices where i should start?? i join a picture to explain what i am looking for

thank you!!

You have to create a triangulated mesh for all the points. Then calculate the UV for each point. If you have this value, you can change the vertex positions and keep the UV. This should result in the effect you are looking for.