I'm looking for a good way to deform a plane 2D mesh by moving only a subset of its vertices.
This is a short study about differents availables methods, for use in openFrameworks applications.
There is the ofxPuppet addon for openFrameworks. This is great because it provide a easy way to do As-Rigid-As-Possible (ARAP) deformation, but I'm not so happy with the results.
So I made some tries with the CGAL library. CGAL provides 3 differents methods :
- The As-Rigid-As-Possible (ARAP) method
- The Spokes and Rims method
- The Smoothed Rotation Enhanced As-Rigid-As-Possible method
This application show the results given by ofxPuppet and the 3 CGAL methods :