mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 16:51:21 -06:00
Merged branch 'dev_native' into lm_sla_supports_auto
Added igl library files
This commit is contained in:
commit
7681d00ee5
2865 changed files with 142806 additions and 22325 deletions
37
src/igl/cotmatrix_entries.h
Normal file
37
src/igl/cotmatrix_entries.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// 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_COTMATRIX_ENTRIES_H
|
||||
#define IGL_COTMATRIX_ENTRIES_H
|
||||
#include "igl_inline.h"
|
||||
#include <Eigen/Core>
|
||||
namespace igl
|
||||
{
|
||||
// COTMATRIX_ENTRIES compute the cotangents of each angle in mesh (V,F)
|
||||
//
|
||||
// Inputs:
|
||||
// V #V by dim list of rest domain positions
|
||||
// F #F by {3|4} list of {triangle|tetrahedra} indices into V
|
||||
// Outputs:
|
||||
// C #F by 3 list of 1/2*cotangents corresponding angles
|
||||
// for triangles, columns correspond to edges [1,2],[2,0],[0,1]
|
||||
// OR
|
||||
// C #F by 6 list of 1/6*cotangents of dihedral angles*edge lengths
|
||||
// for tets, columns along edges [1,2],[2,0],[0,1],[3,0],[3,1],[3,2]
|
||||
//
|
||||
template <typename DerivedV, typename DerivedF, typename DerivedC>
|
||||
IGL_INLINE void cotmatrix_entries(
|
||||
const Eigen::MatrixBase<DerivedV>& V,
|
||||
const Eigen::MatrixBase<DerivedF>& F,
|
||||
Eigen::PlainObjectBase<DerivedC>& C);
|
||||
}
|
||||
|
||||
#ifndef IGL_STATIC_LIBRARY
|
||||
# include "cotmatrix_entries.cpp"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue