// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2014 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 "local_basis.h" #include #include #include #include #include template IGL_INLINE void igl::local_basis( const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F, Eigen::PlainObjectBase& B1, Eigen::PlainObjectBase& B2, Eigen::PlainObjectBase& B3 ) { using namespace Eigen; using namespace std; B1.resize(F.rows(),3); B2.resize(F.rows(),3); B3.resize(F.rows(),3); for (unsigned i=0;i