660 |
khor |
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 |
|
|
|
12 |
#ifndef __HMESH_REFINE_EDGES_H__
|
|
|
13 |
#define __HMESH_REFINE_EDGES_H__
|
|
|
14 |
|
|
|
15 |
namespace HMesh
|
|
|
16 |
{
|
|
|
17 |
class Manifold;
|
|
|
18 |
|
|
|
19 |
/// Return the average edge length
|
|
|
20 |
float average_edge_length(const Manifold& m);
|
|
|
21 |
|
|
|
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);
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
#endif
|