// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Alec Jacobson // // 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/. #include "edge_flaps.h" #include "unique_edge_map.h" #include #include IGL_INLINE void igl::edge_flaps( const Eigen::MatrixXi & F, const Eigen::MatrixXi & uE, const Eigen::VectorXi & EMAP, Eigen::MatrixXi & EF, Eigen::MatrixXi & EI) { // Initialize to boundary value EF.setConstant(uE.rows(),2,-1); EI.setConstant(uE.rows(),2,-1); // loop over all faces for(int f = 0;f > uE2E; igl::unique_edge_map(F,allE,uE,EMAP,uE2E); // Const-ify to call overload const auto & cuE = uE; const auto & cEMAP = EMAP; return edge_flaps(F,cuE,cEMAP,EF,EI); }