Rev 363 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef __HMESHUTIL_QUADRIC_SIMPLIFY__H
#define __HMESHUTIL_QUADRIC_SIMPLIFY__H
#include "HMesh/Manifold.h"
namespace HMesh
{
/** Garland Heckbert simplification in our own implementation.
keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
small singular values from the SVD we accept. It is relative to the greatest singular value.
If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
of the old vertices. */
void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001,
bool choose_optimal_positions=true);
}
#endif