// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 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 "faces_first.h" #include #include template IGL_INLINE void igl::faces_first( const MatV & V, const MatF & F, MatV & RV, MatF & RF, VecI & IM) { assert(&V != &RV); assert(&F != &RF); using namespace std; using namespace Eigen; vector in_face(V.rows()); for(int i = 0; i IGL_INLINE void igl::faces_first( MatV & V, MatF & F, VecI & IM) { MatV RV; // Copying F may not be needed, seems RF = F is safe (whereas RV = V is not) MatF RF; igl::faces_first(V,F,RV,RF,IM); V = RV; F = RF; } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation template void igl::faces_first, Eigen::Matrix, Eigen::Matrix >(Eigen::Matrix&, Eigen::Matrix&, Eigen::Matrix&); #endif