Subversion Repositories gelsvn

Rev

Rev 150 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
149 jab 1
#ifndef __HMESHUTIL_REFINE_EDGES_H__
2
#define __HMESHUTIL_REFINE_EDGES_H__
3
 
4
#include "HMesh/Manifold.h"
5
 
6
namespace HMeshUtil
7
{
8
	/// Return the average edge length
9
	float average_edge_length(HMesh::Manifold& mani);
10
 
11
 
12
	/** Split all edges in mesh passed as first argument which are longer
13
			than the threshold (second arg) length. A split edge
14
			results in a new vertex of valence two. We triangulate the faces on either
15
			side to ensure that there are no valence two vertices.*/
16
	int refine_edges(HMesh::Manifold& mani, float t);
17
}
18
 
19
#endif