Cotangent Laplacian Operator
1. Discrete Laplace operator
- the picture from Definition: Laplacian Matrix for triangle meshes
2. C++ Code
-
Cotangent weight
/// Compute cotangent between each edge ij /// \param V vertex /// \param F faces /// \param C cotangent void cotmatrix_entries(const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> & C) { using namespace std; using namespace Eigen; // Number of elements int m = F.rows(); // Triangles //Compute Squared Edge lengths