libigl v2.5.0
Loading...
Searching...
No Matches
dihedral_angles.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_DIHEDRAL_ANGLES_H
9#define IGL_DIHEDRAL_ANGLES_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
21 template <
22 typename DerivedV,
23 typename DerivedT,
24 typename Derivedtheta,
25 typename Derivedcos_theta>
27 const Eigen::MatrixBase<DerivedV>& V,
28 const Eigen::MatrixBase<DerivedT>& T,
29 Eigen::PlainObjectBase<Derivedtheta>& theta,
30 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta);
37 template <
38 typename DerivedL,
39 typename DerivedA,
40 typename Derivedtheta,
41 typename Derivedcos_theta>
43 const Eigen::MatrixBase<DerivedL>& L,
44 const Eigen::MatrixBase<DerivedA>& A,
45 Eigen::PlainObjectBase<Derivedtheta>& theta,
46 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta);
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "dihedral_angles.cpp"
51#endif
52
53#endif
54
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void dihedral_angles(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedT > &T, Eigen::PlainObjectBase< Derivedtheta > &theta, Eigen::PlainObjectBase< Derivedcos_theta > &cos_theta)
Compute dihedral angles for all tets of a given tet mesh (V,T).
void dihedral_angles_intrinsic(const Eigen::MatrixBase< DerivedL > &L, const Eigen::MatrixBase< DerivedA > &A, Eigen::PlainObjectBase< Derivedtheta > &theta, Eigen::PlainObjectBase< Derivedcos_theta > &cos_theta)
This is an overloaded member function, provided for convenience. It differs from the above function o...