Subversion Repositories gelsvn

Rev

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

Rev 367 Rev 448
1
#ifndef __HMESHUTIL_QUADRIC_SIMPLIFY__H
1
#ifndef __HMESH_QUADRIC_SIMPLIFY__H
2
#define __HMESHUTIL_QUADRIC_SIMPLIFY__H
2
#define __HMESH_QUADRIC_SIMPLIFY__H
3
 
3
 
4
#include "HMesh/Manifold.h"
4
#include "HMesh/Manifold.h"
5
 
5
 
6
namespace HMesh
6
namespace HMesh
7
{
7
{
8
	/** Garland Heckbert simplification in our own implementation. 
8
	/** Garland Heckbert simplification in our own implementation. 
9
		keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
9
		keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
10
		small singular values from the SVD we accept. It is relative to the greatest singular value. 
10
		small singular values from the SVD we accept. It is relative to the greatest singular value. 
11
		If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
11
		If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
12
		of the old vertices. */
12
		of the old vertices. */
13
	void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001, 
13
	void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001, 
14
							bool choose_optimal_positions=true);
14
							bool choose_optimal_positions=true);
15
}
15
}
16
#endif
16
#endif
17
 
17