Subversion Repositories gelsvn

Rev

Rev 518 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/* ----------------------------------------------------------------------- *
* This file is part of GEL, www.imm.dtu.dk/GEL
* Copyright (C) the authors (see AUTHORS.txt) and DTU Informatics
*
* Principal authors:
*  Christian Thode Larsen (thode2d@gmail.com)
*  J. Andreas Baerentzen (jab@imm.dtu.dk)
*
* See LICENSE.txt for licensing information
* ----------------------------------------------------------------------- */

#ifndef __HMESH_FLATTEN_H__
#define __HMESH_FLATTEN_H__

namespace HMesh
{
    class Manifold;

    enum WeightScheme {FLOATER_W, HARMONIC_W, BARYCENTRIC_W};


    /** \brief This function flattens a mesh with a simple boundary, based on a weight scheme.It is mostly for showing mesh parametrization methods. 
    The current mesh MUST have a SINGLE boundary loop.
    This loop is mapped to the unit circle in a regular fashion (equal angle intervals).
    All non boundary vertices are placed at the origin. Then the system is relaxed iteratively using the weight scheme given as argument. */
    void flatten(Manifold& m, WeightScheme ws);
}

#endif

Generated by GNU Enscript 1.6.6.