#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: // A vector> of face indices, each row i corresponding to V(i,:) // // See also: edges, cotmatrix, diag, vv template inline void vf( const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, vector >& Al); } // Implementation #include "verbose.h" template inline void igl::vf( const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, vector >& Al) { Al.clear; Al.resize(V.rows()); // Loop over faces for(int i = 0;i(dyn_A); } #endif