Subversion Repositories gelsvn

Rev

Rev 448 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 448 Rev 595
Line -... Line 1...
-
 
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
 */
1
#ifndef __HMESH_QUADRIC_SIMPLIFY__H
11
#ifndef __HMESH_QUADRIC_SIMPLIFY__H
2
#define __HMESH_QUADRIC_SIMPLIFY__H
12
#define __HMESH_QUADRIC_SIMPLIFY__H
3
 
13
 
4
#include "HMesh/Manifold.h"
14
#include "Manifold.h"
5
 
15
 
6
namespace HMesh
16
namespace HMesh
7
{
17
{
8
	/** Garland Heckbert simplification in our own implementation. 
18
    /** \brief Garland Heckbert simplification in our own implementation. 
9
		keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
19
    keep_fraction is the fraction of vertices to retain. The singular_thresh defines how
10
		small singular values from the SVD we accept. It is relative to the greatest singular value. 
20
    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
21
    If choose_optimal_positions is true, we reposition vertices. Otherwise the vertices are a subset
12
		of the old vertices. */
22
    of the old vertices. */
13
	void quadric_simplify(HMesh::Manifold& m, double keep_fraction, double singular_thresh=0.0001, 
23
    void quadric_simplify(Manifold& m, double keep_fraction, double singular_thresh = 0.0001, bool choose_optimal_positions = true);
14
							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
 
15
}
26
}
16
#endif
27
#endif
17
 
28