#ifndef IGL_DEFORM_SKELETON_H #define IGL_DEFORM_SKELETON_H #include "igl_inline.h" #include #include #include namespace igl { // Deform a skeleton. // // Inputs: // C #C by 3 list of joint positions // BE #BE by 2 list of bone edge indices // vA #BE list of bone transformations // Outputs // CT #BE*2 by 3 list of deformed joint positions // BET #BE by 2 list of bone edge indices (maintains order) // IGL_INLINE void deform_skeleton( const Eigen::MatrixXd & C, const Eigen::MatrixXi & BE, const std::vector< Eigen::Affine3d,Eigen::aligned_allocator > & vA, Eigen::MatrixXd & CT, Eigen::MatrixXi & BET); // Inputs: // T #BE*4 by 3 list of stacked transformation matrix IGL_INLINE void deform_skeleton( const Eigen::MatrixXd & C, const Eigen::MatrixXi & BE, const Eigen::MatrixXd & T, Eigen::MatrixXd & CT, Eigen::MatrixXi & BET); } #ifndef IGL_STATIC_LIBRARY # include "deform_skeleton.cpp" #endif #endif