libigl v2.5.0
Loading...
Searching...
No Matches
cotmatrix.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_COTMATRIX_H
9#define IGL_COTMATRIX_H
10#include "igl_inline.h"
11
12#include <Eigen/Dense>
13#include <Eigen/Sparse>
14
15// History:
16// Used const references rather than copying the entire mesh
17// Alec 9 October 2011
18// removed cotan (uniform weights) optional parameter it was building a buggy
19// half of the uniform laplacian, please see adjacency_matrix instead
20// Alec 9 October 2011
21
22namespace igl
23{
44 template <typename DerivedV, typename DerivedF, typename Scalar>
46 const Eigen::MatrixBase<DerivedV> & V,
47 const Eigen::MatrixBase<DerivedF> & F,
48 Eigen::SparseMatrix<Scalar>& L);
60 template <
61 typename DerivedV,
62 typename DerivedI,
63 typename DerivedC,
64 typename Scalar>
66 const Eigen::MatrixBase<DerivedV> & V,
67 const Eigen::MatrixBase<DerivedI> & I,
68 const Eigen::MatrixBase<DerivedC> & C,
69 Eigen::SparseMatrix<Scalar>& L,
70 Eigen::SparseMatrix<Scalar>& M,
71 Eigen::SparseMatrix<Scalar>& P);
72}
73
74#ifndef IGL_STATIC_LIBRARY
75# include "cotmatrix.cpp"
76#endif
77
78#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void cotmatrix(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, Eigen::SparseMatrix< Scalar > &L)
Constructs the cotangent stiffness matrix (discrete laplacian) for a given mesh (V,...