1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // removeDuplicates.h
- // Preview3D
- //
- // Created by Olga Diamanti on 17/11/11.
- // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
- //
- #ifndef IGL_REMOVEDUPLICATES_H
- #define IGL_REMOVEDUPLICATES_H
- #include "igl_inline.h"
- #include <Eigen/Core>
- 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 <typename T, typename S>
- // IGL_INLINE void removeDuplicates(
- // const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &V,
- // const Eigen::Matrix<S, Eigen::Dynamic, Eigen::Dynamic> &F,
- // Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &NV,
- // Eigen::Matrix<S, Eigen::Dynamic, Eigen::Dynamic> &NF,
- // Eigen::Matrix<S, Eigen::Dynamic, 1> &I,
- // const double epsilon = 2.2204e-15);
-
- template <typename DerivedV, typename DerivedF>
- IGL_INLINE void removeDuplicates(
- const Eigen::PlainObjectBase<DerivedV> &V,
- const Eigen::PlainObjectBase<DerivedF> &F,
- Eigen::PlainObjectBase<DerivedV> &NV,
- Eigen::PlainObjectBase<DerivedF> &NF,
- Eigen::Matrix<typename DerivedF::Scalar, Eigen::Dynamic, 1> &I,
- const double epsilon = 2.2204e-15);
-
- }
- #ifdef IGL_HEADER_ONLY
- # include "removeDuplicates.cpp"
- #endif
- #endif
|