| 1234567891011121314151617181920212223242526272829303132333435363738 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2014 Alec Jacobson <[email protected]>
- //
- // 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/.
- #ifndef IGL_DIHEDRAL_ANGLES_INTRINSIC_H
- #define IGL_DIHEDRAL_ANGLES_INTRINSIC_H
- #include "igl_inline.h"
- #include <Eigen/Core>
- namespace igl
- {
- /// Compute dihedral angles for all tets of a given tet mesh's intrinsics.
- ///
- /// @param[in] L #L by 6 list of edge lengths
- /// @param[in] A #A by 4 list of face areas
- /// @param[out] theta #T by 6 list of dihedral angles (in radians)
- /// @param[out] cos_theta #T by 6 list of cosine of dihedral angles (in radians)
- template <
- typename DerivedL,
- typename DerivedA,
- typename Derivedtheta,
- typename Derivedcos_theta>
- IGL_INLINE void dihedral_angles_intrinsic(
- const Eigen::MatrixBase<DerivedL>& L,
- const Eigen::MatrixBase<DerivedA>& A,
- Eigen::PlainObjectBase<Derivedtheta>& theta,
- Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta);
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "dihedral_angles_intrinsic.cpp"
- #endif
- #endif
|