Subversion Repositories gelsvn

Rev

Rev 388 | Go to most recent revision | Details | 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
 
18
/// Initialize analysis of harmonics
19
void init_harmonics(HMesh::Manifold& mani);
20
 
21
/// Add a frequency to mesh reconstruction
22
void add_frequency(HMesh::Manifold& mani, int es, float scale = 1.0f);
23
 
24
/// Reset the shape to use 0 eigenvalues
25
void reset_shape(HMesh::Manifold& mani);
26
 
27
/// Reconstruct the shape
28
void reconstruct(HMesh::Manifold& mani, int E);
29
 
30
/// Do a partial reconstruct with an interval of eigenvalues
31
void partial_reconstruct(HMesh::Manifold& mani, int E0, int E1, float scale=1.0f);
32
 
33
/// Draw with eigenvalues
34
void draw_eigenvalues(HMesh::Manifold& m);