Subversion Repositories gelsvn

Rev

Rev 386 | Rev 399 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 *  harmonics.h
 *  GEL
 *
 *  Created by J. Andreas Bærentzen on 01/09/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */
 
 #include <HMesh/Manifold.h>

 /// Eigenvalue up to which we reconstruct      
extern int E;

/// Maximum eigenvalue in mesh
extern int MAX_E; 

/// Initialize API (must be called first)
void init_harmonics();

/// Initial analysis of harmonics (must be called second)
void analyze_mesh(HMesh::Manifold& mani);

/// Add a frequency to mesh reconstruction
void add_frequency(HMesh::Manifold& mani, int es, float scale = 1.0f);

/// Reset the shape to use 0 eigenvalues
void reset_shape(HMesh::Manifold& mani);

/// Reconstruct the shape
void reconstruct(HMesh::Manifold& mani, int E);

/// Do a partial reconstruct with an interval of eigenvalues
void partial_reconstruct(HMesh::Manifold& mani, int E0, int E1, float scale=1.0f);

/// Draw with eigenvalues
void draw_eigenvalues(HMesh::Manifold& m);