diff --git a/examples/skeleton-posing/example.cpp b/examples/skeleton-posing/example.cpp index 5d2980e97..9de69741e 100644 --- a/examples/skeleton-posing/example.cpp +++ b/examples/skeleton-posing/example.cpp @@ -52,7 +52,6 @@ #ifndef GLUT_ACTIVE_COMMAND # define GLUT_ACTIVE_COMMAND 9 #endif -#include #else #include #endif @@ -631,6 +630,28 @@ bool save_weights() } } +bool save_mesh() +{ + using namespace std; + using namespace igl; + using namespace Eigen; + MatrixXd T; + forward_kinematics(C,BE,P,s.mouse.rotations(),T); + MatrixXd U = M*T; + string output_filename; + next_filename(output_pose_prefix,4,".obj",output_filename); + if(writeOBJ(output_filename,U,F)) + { + cout<