mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-25 01:31:14 -06:00
Fixing dep build script on Windows and removing some warnings. Use bundled igl by default. Not building with the dependency scripts if not explicitly stated. This way, it will stay in Fix the libigl patch to include C source files in header only mode.
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
// This file is part of libigl, a simple c++ geometry processing library.
|
|
//
|
|
// Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
|
|
//
|
|
// 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_H
|
|
#define IGL_DIHEDRAL_ANGLES_H
|
|
#include "igl_inline.h"
|
|
#include <Eigen/Core>
|
|
namespace igl
|
|
{
|
|
// DIHEDRAL_ANGLES Compute dihedral angles for all tets of a given tet mesh
|
|
// (V,T)
|
|
//
|
|
// theta = dihedral_angles(V,T)
|
|
// theta = dihedral_angles(V,T,'ParameterName',parameter_value,...)
|
|
//
|
|
// Inputs:
|
|
// V #V by dim list of vertex positions
|
|
// T #V by 4 list of tet indices
|
|
// Outputs:
|
|
// theta #T by 6 list of dihedral angles (in radians)
|
|
// cos_theta #T by 6 list of cosine of dihedral angles (in radians)
|
|
//
|
|
template <
|
|
typename DerivedV,
|
|
typename DerivedT,
|
|
typename Derivedtheta,
|
|
typename Derivedcos_theta>
|
|
IGL_INLINE void dihedral_angles(
|
|
Eigen::PlainObjectBase<DerivedV>& V,
|
|
Eigen::PlainObjectBase<DerivedT>& T,
|
|
Eigen::PlainObjectBase<Derivedtheta>& theta,
|
|
Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta);
|
|
template <
|
|
typename DerivedL,
|
|
typename DerivedA,
|
|
typename Derivedtheta,
|
|
typename Derivedcos_theta>
|
|
IGL_INLINE void dihedral_angles_intrinsic(
|
|
Eigen::PlainObjectBase<DerivedL>& L,
|
|
Eigen::PlainObjectBase<DerivedA>& A,
|
|
Eigen::PlainObjectBase<Derivedtheta>& theta,
|
|
Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta);
|
|
|
|
}
|
|
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
# include "dihedral_angles.cpp"
|
|
#endif
|
|
|
|
#endif
|
|
|