// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2016 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 "combine.h" #include template < typename DerivedVV, typename DerivedFF, typename DerivedV, typename DerivedF> IGL_INLINE void igl::combine( const std::vector & VV, const std::vector & FF, Eigen::PlainObjectBase & V, Eigen::PlainObjectBase & F) { assert(VV.size() == FF.size() && "Lists of verex lists and face lists should be same size"); // Dimension of vertex positions const int dim = VV.size() > 0 ? VV[0].cols() : 0; // Simplex/element size const int ss = FF.size() > 0 ? FF[0].cols() : 0; int n = 0; int m = 0; for(int i = 0;i