Subversion Repositories gelsvn

Rev

Rev 386 | Rev 391 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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