Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
667 khor 1
/* ----------------------------------------------------------------------- *
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
 * Copyright (C) the authors and DTU Informatics
4
 * For license and list of authors, see ../../doc/intro.pdf
5
 * ----------------------------------------------------------------------- */
6
 
7
/**
8
 * @file quadric_simplify.h
9
 * @brief Garland Heckbert simplification.
10
 */
11
#ifndef __HMESH_QUADRIC_SIMPLIFY__H
12
#define __HMESH_QUADRIC_SIMPLIFY__H
13
 
14
#include "Manifold.h"
15
 
16
namespace HMesh
17
{
18
    /** \brief Garland Heckbert simplification in our own implementation. 
19
    keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
20
    small singular values from the SVD we accept. It is relative to the greatest singular value. 
21
    If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
22
    of the old vertices. */
23
    void quadric_simplify(Manifold& m, double keep_fraction, double singular_thresh = 0.0001, bool choose_optimal_positions = true);
24
    void quadric_simplify(Manifold& m, VertexAttributeVector<int> mask, double keep_fraction, double singular_thresh = 0.0001, bool choose_optimal_positions = true);
25
 
26
}
27
#endif