595 |
jab |
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 |
*/
|
448 |
jab |
11 |
#ifndef __HMESH_QUADRIC_SIMPLIFY__H
|
|
|
12 |
#define __HMESH_QUADRIC_SIMPLIFY__H
|
149 |
jab |
13 |
|
595 |
jab |
14 |
#include "Manifold.h"
|
149 |
jab |
15 |
|
150 |
jab |
16 |
namespace HMesh
|
149 |
jab |
17 |
{
|
595 |
jab |
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 |
|
149 |
jab |
26 |
}
|
595 |
jab |
27 |
#endif
|