#ifndef IGL_VF_H #define IGL_VF_H #define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET #include #include namespace igl { // Constructs the vertex-face topology of a given mesh (V,F) // Inputs: // V #V by 3 list of vertex coordinates // F #F by dim list of mesh faces (must be triangles) // Outputs: // // // See also: edges, cotmatrix, diag, vv template inline void vf( const Eigen::Matrix & V, const Eigen::MatrixXi & F, vector >& VF, vector >& VFi); } // Implementation #include "verbose.h" template inline void igl::vf( const Eigen::Matrix & V, const Eigen::MatrixXi & F, vector >& VF, vector >& VFi) { VF.clear(); VFi.clear(); VF.resize(V.rows()); VFi.resize(V.rows()); for(int fi=0; fi