Files
OrcaSlicer-bambulab/src/libigl/igl/remove_duplicates.h
tamasmeszaros 2ae2672ee9 Building igl statically and moving to the dep scripts
Fixing dep build script on Windows and removing some warnings.

Use bundled igl by default.

Not building with the dependency scripts if not explicitly stated. This way, it will stay in
Fix the libigl patch to include C source files in header only mode.
2019-06-19 14:52:55 +02:00

50 lines
1.8 KiB
C++

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#ifndef IGL_REMOVE_DUPLICATES_H
#define IGL_REMOVE_DUPLICATES_H
#include "igl_inline.h"
#include <Eigen/Core>
namespace igl
{
// [ NV, NF ] = remove_duplicates( 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 remove_duplicates(
// 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 remove_duplicates(
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);
}
#ifndef IGL_STATIC_LIBRARY
# include "remove_duplicates.cpp"
#endif
#endif