Subversion Repositories gelsvn

Rev

Rev 448 | 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 refine_edges.h
3
 * @brief Tools for subdividing edges of a Manifold.
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_REFINE_EDGES_H__
13
#define __HMESH_REFINE_EDGES_H__
149 jab 14
 
150 jab 15
namespace HMesh
149 jab 16
{
595 jab 17
    class Manifold;
149 jab 18
 
595 jab 19
    /// Return the average edge length
20
    float average_edge_length(const Manifold& m);
149 jab 21
 
595 jab 22
    /** Split all edges in mesh passed as first argument which are longer
23
    than the threshold (second arg) length. A split edge
24
    results in a new vertex of valence two.*/
25
    int refine_edges(Manifold& m, float t);
149 jab 26
}
27
 
595 jab 28
#endif