// 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 "dihedral_angles.h" #include "dihedral_angles_intrinsic.h" #include "edge_lengths.h" #include "face_areas.h" #include template < typename DerivedV, typename DerivedT, typename Derivedtheta, typename Derivedcos_theta> IGL_INLINE void igl::dihedral_angles( const Eigen::MatrixBase& V, const Eigen::MatrixBase& T, Eigen::PlainObjectBase& theta, Eigen::PlainObjectBase& cos_theta) { assert(T.cols() == 4); Eigen::Matrix l; edge_lengths(V,T,l); Eigen::Matrix s; face_areas(l,s); return dihedral_angles_intrinsic(l,s,theta,cos_theta); } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation template void igl::dihedral_angles, Eigen::Matrix, Eigen::Matrix, Eigen::Matrix >(Eigen::MatrixBase > const&, Eigen::MatrixBase > const&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif