Subversion Repositories gelsvn

Rev

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

Rev Author Line No. Line
386 jab 1
/*
2
 *  harmonics.h
3
 *  GEL
4
 *
5
 *  Created by J. Andreas Bærentzen on 01/09/08.
6
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
7
 *
8
 */
9
 
10
 #include <HMesh/Manifold.h>
11
 
12
 /// Eigenvalue up to which we reconstruct	
13
extern int E;
14
 
15
/// Maximum eigenvalue in mesh
16
extern int MAX_E; 
17
 
388 jab 18
/// Initialize API (must be called first)
19
void init_harmonics();
386 jab 20
 
388 jab 21
/// Initial analysis of harmonics (must be called second)
22
void analyze_mesh(HMesh::Manifold& mani);
23
 
386 jab 24
/// Add a frequency to mesh reconstruction
25
void add_frequency(HMesh::Manifold& mani, int es, float scale = 1.0f);
26
 
27
/// Reset the shape to use 0 eigenvalues
28
void reset_shape(HMesh::Manifold& mani);
29
 
30
/// Reconstruct the shape
31
void reconstruct(HMesh::Manifold& mani, int E);
32
 
33
/// Do a partial reconstruct with an interval of eigenvalues
34
void partial_reconstruct(HMesh::Manifold& mani, int E0, int E1, float scale=1.0f);
35
 
36
/// Draw with eigenvalues
37
void draw_eigenvalues(HMesh::Manifold& m);