Line 4... |
Line 4... |
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 |
keep_fraction is the fraction of vertices to retain. 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. 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 |
a subset of the old (false) or in optimal positions (true). */
|
12 |
of the old vertices. */
|
12 |
void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001, bool relocate_origin=true);
|
13 |
void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001,
|
- |
|
14 |
bool choose_optimal_positions=true);
|
13 |
}
|
15 |
}
|
14 |
#endif
|
16 |
#endif
|