Subversion Repositories gelsvn

Rev

Rev 543 | Rev 578 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
514 s042372 1
/* ----------------------------------------------------------------------- *
572 jab 2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
 * Copyright (C) the authors and DTU Informatics
4
 * For license and list of authors, see ../../doc/intro.pdf
5
 * ----------------------------------------------------------------------- */
514 s042372 6
 
7
#ifndef __HMESH_FLATTEN_H__
8
#define __HMESH_FLATTEN_H__
9
 
10
namespace HMesh
11
{
12
    class Manifold;
13
 
543 jab 14
    enum WeightScheme {FLOATER_W, HARMONIC_W, LSCM_W, BARYCENTRIC_W};
514 s042372 15
 
518 s042372 16
 
17
    /** \brief This function flattens a mesh with a simple boundary, based on a weight scheme.It is mostly for showing mesh parametrization methods. 
18
    The current mesh MUST have a SINGLE boundary loop.
19
    This loop is mapped to the unit circle in a regular fashion (equal angle intervals).
514 s042372 20
    All non boundary vertices are placed at the origin. Then the system is relaxed iteratively using the weight scheme given as argument. */
21
    void flatten(Manifold& m, WeightScheme ws);
22
}
23
 
24
#endif