Subversion Repositories gelsvn

Rev

Rev 215 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 215 Rev 448
1
#ifndef __HMESHUTIL_SMOOTH_H
1
#ifndef __HMESH_SMOOTH_H
2
#define __HMESHUTIL_SMOOTH_H
2
#define __HMESH_SMOOTH_H
3
 
3
 
4
#include "HMesh/Manifold.h"
4
#include "HMesh/Manifold.h"
5
 
5
 
6
namespace HMesh
6
namespace HMesh
7
{
7
{
8
	/// Simple laplacian smoothing with an optional weight.
8
	/// Simple laplacian smoothing with an optional weight.
9
	void laplacian_smooth(HMesh::Manifold& m, float t=1.0f);
9
	void laplacian_smooth(HMesh::Manifold& m, float t=1.0f);
10
 
10
 
11
	/// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
11
	/// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
12
	void taubin_smooth(HMesh::Manifold& m, int iter);
12
	void taubin_smooth(HMesh::Manifold& m, int iter);
13
 
13
 
14
	/** Fuzzy vector median smoothing is effective when it comes to
14
	/** Fuzzy vector median smoothing is effective when it comes to
15
			preserving sharp edges. */
15
			preserving sharp edges. */
16
	void fvm_smooth(HMesh::Manifold& m, int iter);
16
	void fvm_smooth(HMesh::Manifold& m, int iter);
17
}
17
}
18
#endif
18
#endif
19
 
19