149 |
jab |
1 |
#ifndef __HMESHUTIL_QUADRIC_SIMPLIFY__H
|
|
|
2 |
#define __HMESHUTIL_QUADRIC_SIMPLIFY__H
|
|
|
3 |
|
|
|
4 |
#include "HMesh/Manifold.h"
|
|
|
5 |
|
150 |
jab |
6 |
namespace HMesh
|
149 |
jab |
7 |
{
|
362 |
jab |
8 |
/** Garland Heckbert simplification in our own implementation.
|
367 |
jab |
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.
|
|
|
11 |
If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
|
|
|
12 |
of the old vertices. */
|
|
|
13 |
void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001,
|
|
|
14 |
bool choose_optimal_positions=true);
|
149 |
jab |
15 |
}
|
|
|
16 |
#endif
|