ManifoldMusic
music visualization
 All Classes Files Functions Variables Enumerations Enumerator
Public Member Functions | Public Attributes | Protected Attributes | List of all members
MHMesh Class Reference

Does all the Manifold Harmonics calculations. More...

#include <MHMesh.h>

Public Member Functions

 MHMesh ()
 default constructor
 
bool calcMHB ()
 computes Manifold Harmonics Basis
 
void calcMHT ()
 computes Manifold Harmonics Transformation
 
bool reconstruct (int numEigVecs)
 
void writeToFiles ()
 only for debugging purposes
 
float * getVert (int ind)
 returns the position of reconstructed vertex of index ind
 
float * getPositions ()
 

Public Attributes

Mesh * mesh
 
MatrixXd mhb
 
VectorXd eigenvalues
 
VectorXd filter
 
VectorXd mhtX
 
VectorXd mhtY
 
VectorXd mhtZ
 
VectorXd reconstructedX
 
VectorXd reconstructedY
 
VectorXd reconstructedZ
 
double * reconstructedData
 
OpenMesh::VPropHandleT< int > index
 
OpenMesh::VPropHandleT< float > vtarea
 

Protected Attributes

bool mhbcalced
 
bool mhtcalced
 
bool reconstructed
 
int numberofvertices
 
int numEigVecs
 

Detailed Description

Does all the Manifold Harmonics calculations.

Member Function Documentation

float * MHMesh::getPositions ( )
returns an array of the positions of all reconstructed vertices.

The array contains x,y,z coordinates of first point, then x,y,z of second point and so on. Just as needed to feed openGL.

bool MHMesh::reconstruct ( int  numEigVecs)
Reconstructs the mesh.
Parameters
numEigVecsthe number of most significant harmonics that are used for reconstruction

Member Data Documentation

VectorXd MHMesh::eigenvalues

the eigenvalues corresponding to the vectors of the MHB

VectorXd MHMesh::filter

buffer for the filter function that is applied to the harmonics

OpenMesh::VPropHandleT<int> MHMesh::index

provides access to the index of a vertex

Mesh* MHMesh::mesh

mesh datastructure from OpenMesh

MatrixXd MHMesh::mhb

Manifold Harmonics Basis

bool MHMesh::mhbcalced
protected

indicates if Manifold Harmonics Basis has already been computed

bool MHMesh::mhtcalced
protected

indicates if Manifold Harmonics Transformation has already been computed

VectorXd MHMesh::mhtX

x coordinates of the Manifold Harmonics Transformation

VectorXd MHMesh::mhtY

y coordinates of the Manifold Harmonics Transformation

VectorXd MHMesh::mhtZ

z coordinates of the Manifold Harmonics Transformation

int MHMesh::numberofvertices
protected

stores the mesh's number of vertices. actually useless.

int MHMesh::numEigVecs
protected

duplicate of numberofvertices. actually useless and very stupid.

bool MHMesh::reconstructed
protected

indicates if reconstruction has already been computed

double* MHMesh::reconstructedData

x coordinates of the reconstructed mesh

VectorXd MHMesh::reconstructedX

x coordinates of the reconstructed mesh

VectorXd MHMesh::reconstructedY

x coordinates of the reconstructed mesh

VectorXd MHMesh::reconstructedZ

x coordinates of the reconstructed mesh

OpenMesh::VPropHandleT<float> MHMesh::vtarea

provides access to the voronoi area of a vertex


The documentation for this class was generated from the following files: