// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2018 Zhongshi Jiang // // 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_TOPOLOGICAL_HOLE_FILL_H #define IGL_TOPOLOGICAL_HOLE_FILL_H #include "igl_inline.h" #include #include namespace igl { // Topological fill hole on a mesh, with one additional vertex each hole // Index of new abstract vertices will be F.maxCoeff() + (index of hole) // // Inputs: // F #F by simplex-size list of element indices // b #b boundary indices to preserve // holes vector of hole loops to fill // Outputs: // F_filled input F stacked with filled triangles. // template < typename DerivedF, typename Derivedb, typename VectorIndex, typename DerivedF_filled> IGL_INLINE void topological_hole_fill( const Eigen::MatrixBase & F, const Eigen::MatrixBase & b, const std::vector & holes, Eigen::PlainObjectBase &F_filled); } #ifndef IGL_STATIC_LIBRARY # include "topological_hole_fill.cpp" #endif #endif