Subversion Repositories gelsvn

Rev

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