Subversion Repositories gelsvn

Rev

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

Rev 362 Rev 363
1
#ifndef __HMESHUTIL_QUADRIC_SIMPLIFY__H
1
#ifndef __HMESHUTIL_QUADRIC_SIMPLIFY__H
2
#define __HMESHUTIL_QUADRIC_SIMPLIFY__H
2
#define __HMESHUTIL_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
		max_work indicates the number of collapses that we wish to perform. The singular_thresh defines how
9
		max_work indicates the number of collapses that we wish to perform. The singular_thresh defines how
10
		small singular values from the SVD we accept. Relocate origin decides whether the new points should be
10
		small singular values from the SVD we accept. Relocate origin decides whether the new points should be
11
		a subset of the old (false) or in optimal positions (true). */
11
		a subset of the old (false) or in optimal positions (true). */
12
	void quadric_simplify(HMesh::Manifold& m, int max_work, double singular_thresh=0.0001, bool relocate_origin=true);
12
	void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001, bool relocate_origin=true);
13
}
13
}
14
#endif
14
#endif
15
 
15