CortidQCT  1.2.2.52
Namespaces | Typedefs | Functions
MeshHelpers.h File Reference

This header contains mesh related helper functions. More...

#include "Mesh.h"
#include <Eigen/Core>
#include <gsl/gsl>
#include <igl/cotmatrix.h>
#include <igl/per_vertex_normals.h>
Include dependency graph for MeshHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CortidQCT
 Name namespace for CortidQCT library.
 

Typedefs

template<class T = float>
using CortidQCT::Internal::VertexMatrix = Eigen::Matrix< T, Eigen::Dynamic, 3 >
 
template<class T = float>
using CortidQCT::Internal::NormalMatrix = VertexMatrix< T >
 
using CortidQCT::Internal::FacetMatrix = Eigen::Matrix< typename Mesh< float >::Index, Eigen::Dynamic, 3 >
 
using CortidQCT::Internal::LabelVector = Eigen::Matrix< typename Mesh< float >::Label, Eigen::Dynamic, 1 >
 
template<class T = float>
using CortidQCT::Internal::LaplacianMatrix = Eigen::SparseMatrix< T >
 

Functions

template<class T >
VertexMatrix< T > CortidQCT::Internal::vertexMatrix (Mesh< T > const &mesh)
 Returns the Nx3 vertex matrix of the mesh.
 
template<class T >
FacetMatrix CortidQCT::Internal::facetMatrix (Mesh< T > const &mesh)
 Returns the Mx3 index matrix of the mesh.
 
template<class T >
LabelVector CortidQCT::Internal::labelVector (Mesh< T > const &mesh)
 Returns a N-vector containing the per vertex labels.
 
template<class DerivedV , class DerivedF >
NormalMatrix< typename DerivedV::Scalar > CortidQCT::Internal::perVertexNormalMatrix (Eigen::MatrixBase< DerivedV > const &V, Eigen::MatrixBase< DerivedF > const &F)
 Returns a Nx3 matrix with per-vertex normals.
 
template<class T >
NormalMatrix< T > CortidQCT::Internal::perVertexNormalMatrix (Mesh< T > const &mesh)
 Returns a Nx3 matrix with per-vertex normals.
 
template<class DerivedV , class DerivedF >
LaplacianMatrix< typename DerivedV::Scalar > CortidQCT::Internal::laplacianMatrix (Eigen::MatrixBase< DerivedV > const &V, Eigen::MatrixBase< DerivedF > const &F)
 Returns the NxN sparse laplacian matrix (using cotangent weights)
 
template<class T >
LaplacianMatrix< T > CortidQCT::Internal::laplacianMatrix (Mesh< T > const &mesh)
 Returns the NxN sparse laplacian matrix (using cotangent weights)
 

Detailed Description

This header contains mesh related helper functions.

Author
Stefan Reinhold