// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2020 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 "barycentric_interpolation.h" #include "parallel_for.h" template < typename DerivedD, typename DerivedF, typename DerivedB, typename DerivedI, typename DerivedX> IGL_INLINE void igl::barycentric_interpolation( const Eigen::MatrixBase & D, const Eigen::MatrixBase & F, const Eigen::MatrixBase & B, const Eigen::MatrixBase & I, Eigen::PlainObjectBase & X) { assert(B.rows() == I.size()); assert(F.cols() == B.cols()); X.setZero(B.rows(),D.cols()); // should use parallel_for //for(int i = 0;i, Eigen::Matrix, Eigen::Matrix, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, Eigen::PlainObjectBase >&); #endif