Subversion Repositories gelsvn

Rev

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

Rev 595 Rev 630
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
namespace HMesh
15
namespace HMesh
16
{
16
{
17
    class Manifold;
17
    class Manifold;
18
 
18
 
19
    /// Simple laplacian smoothing with an optional weight.
19
    /// Simple laplacian smoothing with an optional weight.
20
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f);
20
    void laplacian_smooth(HMesh::Manifold& m, float t=1.0f);
21
 
21
 
22
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
22
    /// Taubin smoothing is similar to laplacian smoothing but reduces shrinkage
23
    void taubin_smooth(HMesh::Manifold& m, int iter);
23
    void taubin_smooth(HMesh::Manifold& m, int iter);
24
 
24
 
25
    /// Fuzzy vector median smoothing is effective when it comes to preserving sharp edges.
25
    /// Fuzzy vector median smoothing is effective when it comes to preserving sharp edges.
26
    void fvm_smooth(HMesh::Manifold& m, int iter);
26
    void fvm_smooth(HMesh::Manifold& m, int iter);
27
}
27
}
28
#endif
28
#endif
29
 
29
 
30

Generated by GNU Enscript 1.6.6.
30

Generated by GNU Enscript 1.6.6.
31
 
31
 
32
 
32
 
33
 
33