Applications of Mean Value Coordinates for Closed Triangular Mesh
Run The program (command line) : main.exe arg1 arg2 arg3
arg1: Model Mesh
arg2: Control Mesh
arg3: No of clusters to create. For global deformation (Optional)
press '1' and '2' to change mode
/////////////////mode 1 : Shape Deformation////////////////////////////////
(Use key 'C' ,'K' , 'S', 'B' to change the control mesh ) (Use 'T' key to deform model mesh accordingly)
Press 'V' to enable move vertices. (move Cluster will be disabled) Press 'K' to create clusters and to enable move cluster. (move vertices will be disabled) (This will create k points corresponding to k clusters using k-mean clustering. Can change the mesh globally by moving the points)
Press 'D' to disable move vertices and move Clusters
press 'B' key to scale up the control mesh and 'S' key to scale it down.
Press the 'T' key to deform the model mesh after moving the vertices of the control mesh or scaling the model.
//////////////// mode 2: Color Interpolation///////////////////////////////////
press 'C' key to display control mesh press 'X' key to disable display of control mesh