// // removeUnreferenced.h // Preview3D // // Created by Daniele Panozzo on 17/11/11. #ifndef IGL_REMOVEUNREFERENCED_H #define IGL_REMOVEUNREFERENCED_H #include "igl_inline.h" #include namespace igl { // [ NV, NF ] = removeUnreferenced( V,F,epsilon ) // Remove unreferenced vertices from V, updating F accordingly // // Input: // V,F: mesh description // // Output: // NV, NF: new mesh without unreferenced vertices // // Known bugs: // Also removes combinatorially degenerate faces in NF template IGL_INLINE void removeUnreferenced( const Eigen::Matrix &V, const Eigen::Matrix &F, Eigen::Matrix &NV, Eigen::Matrix &NF, Eigen::Matrix &I); } #ifdef IGL_HEADER_ONLY # include "removeUnreferenced.cpp" #endif #endif