// 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 "triangulated_grid.h" #include "grid.h" #include template < typename XType, typename YType, typename DerivedGV, typename DerivedGF> IGL_INLINE void igl::triangulated_grid( const XType & nx, const YType & ny, Eigen::PlainObjectBase & GV, Eigen::PlainObjectBase & GF) { using namespace Eigen; Eigen::Matrix res(nx,ny); igl::grid(res,GV); GF.resize((nx-1)*(ny-1)*2,3); for(int y = 0;y, Eigen::Matrix >(int const&, int const&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif