Subversion Repositories gelsvn

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
595 jab 1
/**
2
 * @file smooth.h
3
 * @brief Functions for mesh smoothing.
4
 */
5
 
6
/* ----------------------------------------------------------------------- *
7
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
8
 * Copyright (C) the authors and DTU Informatics
9
 * For license and list of authors, see ../../doc/intro.pdf
10
 * ----------------------------------------------------------------------- */
11
 
448 jab 12
#ifndef __HMESH_SMOOTH_H
13
#define __HMESH_SMOOTH_H
149 jab 14
 
150 jab 15
namespace HMesh
149 jab 16
{
595 jab 17
    class Manifold;
149 jab 18
 
595 jab 19
    /// Simple laplacian smoothing with an optional weight.
20
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f);
215 jab 21
 
595 jab 22
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
23
    void taubin_smooth(HMesh::Manifold& m, int iter);
24
 
25
    /// Fuzzy vector median smoothing is effective when it comes to preserving sharp edges.
26
    void fvm_smooth(HMesh::Manifold& m, int iter);
149 jab 27
}
595 jab 28
#endif