Subversion Repositories gelsvn

Rev

Rev 448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 448 Rev 595
Line -... Line 1...
-
 
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
 
1
#ifndef __HMESH_REFINE_EDGES_H__
12
#ifndef __HMESH_REFINE_EDGES_H__
2
#define __HMESH_REFINE_EDGES_H__
13
#define __HMESH_REFINE_EDGES_H__
3
 
14
 
4
#include "HMesh/Manifold.h"
-
 
5
 
-
 
6
namespace HMesh
15
namespace HMesh
7
{
16
{
8
	/// Return the average edge length
17
    class Manifold;
9
	float average_edge_length(HMesh::Manifold& mani);
-
 
10
 
18
 
-
 
19
    /// Return the average edge length
-
 
20
    float average_edge_length(const Manifold& m);
11
 
21
 
12
	/** Split all edges in mesh passed as first argument which are longer
22
    /** Split all edges in mesh passed as first argument which are longer
13
			than the threshold (second arg) length. A split edge
23
    than the threshold (second arg) length. A split edge
14
			results in a new vertex of valence two. We triangulate the faces on either
24
    results in a new vertex of valence two.*/
15
			side to ensure that there are no valence two vertices.*/
-
 
16
	int refine_edges(HMesh::Manifold& mani, float t);
25
    int refine_edges(Manifold& m, float t);
17
}
26
}
18
 
27
 
19
#endif
28
#endif
20
 
29