Subversion Repositories gelsvn

Rev

Rev 630 | Rev 646 | Go to most recent revision | Details | Compare with Previous | 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;
631 janba 18
 
19
    enum NormalSmoothMethod {FVM_NORMAL_SMOOTH, BILATERAL_NORMAL_SMOOTH};
149 jab 20
 
595 jab 21
    /// Simple laplacian smoothing with an optional weight.
631 janba 22
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f, int iter=1);
215 jab 23
 
595 jab 24
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
631 janba 25
    void taubin_smooth(HMesh::Manifold& m, int iter=1);
595 jab 26
 
631 janba 27
    /** Smooth meshes by first filtering normals and then refitting the mesh */
28
    void anisotropic_smooth(HMesh::Manifold& m, int iter, NormalSmoothMethod nsm);
149 jab 29
}
595 jab 30
#endif