8#ifndef IGL_MASSMATRIX_H 
    9#define IGL_MASSMATRIX_H 
   13#include <Eigen/Sparse> 
   51  template <
typename DerivedV, 
typename DerivedF, 
typename Scalar>
 
   53    const Eigen::MatrixBase<DerivedV> & V, 
 
   54    const Eigen::MatrixBase<DerivedF> & F, 
 
   56    Eigen::SparseMatrix<Scalar>& M);
 
   59#ifndef IGL_STATIC_LIBRARY 
   60#  include "massmatrix.cpp" 
#define IGL_INLINE
Definition igl_inline.h:15
 
void massmatrix(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const MassMatrixType type, Eigen::SparseMatrix< Scalar > &M)
Constructs the mass (area) matrix for a given mesh (V,F).
 
MassMatrixType
Type of mass matrix.
Definition massmatrix.h:19
 
@ MASSMATRIX_TYPE_DEFAULT
Use MASSMATRIX_TYPE_VORONOI for triangles and MASSMATRIX_TYPE_BARYCENTRIC for tetrahedra.
Definition massmatrix.h:29
 
@ MASSMATRIX_TYPE_VORONOI
Lumping area by Voronoi dual area (clamped to be positive according to Meyer et al.
Definition massmatrix.h:24
 
@ NUM_MASSMATRIX_TYPES
Total number of mass matrix types.
Definition massmatrix.h:31
 
@ MASSMATRIX_TYPE_FULL
Full (non-diagonal mass matrix) for piecewise linear functions.
Definition massmatrix.h:26
 
@ MASSMATRIX_TYPE_BARYCENTRIC
Lumping area of each element to corner vertices in equal parts.
Definition massmatrix.h:21