Subversion Repositories gelsvn

Rev

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

Rev 631 Rev 646
1
/**
1
/**
2
 * @file smooth.h
2
 * @file smooth.h
3
 * @brief Functions for mesh smoothing.
3
 * @brief Functions for mesh smoothing.
4
 */
4
 */
5
 
5
 
6
/* ----------------------------------------------------------------------- *
6
/* ----------------------------------------------------------------------- *
7
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
7
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
8
 * Copyright (C) the authors and DTU Informatics
8
 * Copyright (C) the authors and DTU Informatics
9
 * For license and list of authors, see ../../doc/intro.pdf
9
 * For license and list of authors, see ../../doc/intro.pdf
10
 * ----------------------------------------------------------------------- */
10
 * ----------------------------------------------------------------------- */
11
 
11
 
12
#ifndef __HMESH_SMOOTH_H
12
#ifndef __HMESH_SMOOTH_H
13
#define __HMESH_SMOOTH_H
13
#define __HMESH_SMOOTH_H
14
 
14
 
-
 
15
#include <vector>
-
 
16
#include "Manifold.h"
-
 
17
 
15
namespace HMesh
18
namespace HMesh
16
{
19
{
17
    class Manifold;
20
   enum NormalSmoothMethod {FVM_NORMAL_SMOOTH, BILATERAL_NORMAL_SMOOTH};
18
    
21
    
19
    enum NormalSmoothMethod {FVM_NORMAL_SMOOTH, BILATERAL_NORMAL_SMOOTH};
-
 
20
 
-
 
21
    /// Simple laplacian smoothing with an optional weight.
22
    /// Simple laplacian smoothing with an optional weight.
22
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f, int iter=1);
23
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f, int iter=1);
23
 
24
 
24
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
25
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
25
    void taubin_smooth(HMesh::Manifold& m, int iter=1);
26
    void taubin_smooth(HMesh::Manifold& m, int iter=1);
26
 
27
 
27
    /** Smooth meshes by first filtering normals and then refitting the mesh */
28
    /** Smooth meshes by first filtering normals and then refitting the mesh */
28
    void anisotropic_smooth(HMesh::Manifold& m, int iter, NormalSmoothMethod nsm);
29
    void anisotropic_smooth(HMesh::Manifold& m, int iter, NormalSmoothMethod nsm);
29
}
30
}
30
#endif
31
#endif
31
 
32
 
32

Generated by GNU Enscript 1.6.6.
33

Generated by GNU Enscript 1.6.6.
33
 
34
 
34
 
35
 
35
 
36