// 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 "grid.h" IGL_INLINE void igl::grid(const Eigen::RowVector3i & res, Eigen::MatrixXd & GV) { using namespace Eigen; GV.resize(res(0)*res(1)*res(2),3); for(int zi = 0;zidouble{return di/(double)(res(d)-1);}; const double z = lerp(zi,2); for(int yi = 0;yi