Rev 150 | Go to most recent revision | Blame | Last modification | View Log | RSS feed
#ifndef __HMESHUTIL_CAPS_AND_NEEDLES_H__
#define __HMESHUTIL_CAPS_AND_NEEDLES_H__
#include "HMesh/Manifold.h"
namespace HMesh
{
/** A cap is a triangle with two very small angles and an angle close
to pi, however a cap does not necessarily have a very short edge.
Set the ang_thresh to a value close to pi. The closer to pi the
_less_ sensitive the cap removal.
A cap is removed by flipping the (long) edge E opposite to the vertex
V with the angle close to pi. However, the function is more complex.
Read code and document more carefully !!!
*/
void remove_caps_from_trimesh(HMesh::Manifold& mani, float ang_thresh);
/** A needle is a triangle with a single very short edge. It is moved
by collapsing the short edge. The thresh parameter sets the length
threshold.
The position of the vertex which survives the collapse is set to one
of the two end points. Selection is based on what changes the geometry
least. */
void remove_needles_from_trimesh(HMesh::Manifold& mani,
float thresh);
}
#endif