#ifndef IGL_REMOVEDUPLICATES_H #define IGL_REMOVEDUPLICATES_H #include "igl_inline.h" #include namespace igl { // [ NV, NF ] = removeDuplicates( V,F,epsilon ) // Merge the duplicate vertices from V, fixing the topology accordingly // // Input: // V,F: mesh description // epsilon: minimal distance to consider two vertices identical // // Output: // NV, NF: new mesh without duplicate vertices // template // IGL_INLINE void removeDuplicates( // const Eigen::Matrix &V, // const Eigen::Matrix &F, // Eigen::Matrix &NV, // Eigen::Matrix &NF, // Eigen::Matrix &I, // const double epsilon = 2.2204e-15); template IGL_INLINE void removeDuplicates( const Eigen::PlainObjectBase &V, const Eigen::PlainObjectBase &F, Eigen::PlainObjectBase &NV, Eigen::PlainObjectBase &NF, Eigen::Matrix &I, const double epsilon = 2.2204e-15); } #ifdef IGL_HEADER_ONLY # include "removeDuplicates.cpp" #endif #endif