added updateQuality Vertex Clamp
This commit is contained in:
parent
3256d9517c
commit
3b770c935a
|
@ -207,6 +207,15 @@ static void VertexConstant(MeshType &m, float q)
|
|||
(*vi).Q()=q;
|
||||
}
|
||||
|
||||
/** Clamp each vertex of the mesh with a range of values.
|
||||
*/
|
||||
static void VertexClamp(MeshType &m, float qmin, float qmax)
|
||||
{
|
||||
VertexIterator vi;
|
||||
for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
||||
(*vi).Q()=std::min(qmax, std::max(qmin,(*vi).Q()));
|
||||
}
|
||||
|
||||
/** Assign to each face of the mesh a constant quality value. Useful for initialization.
|
||||
*/
|
||||
static void FaceConstant(MeshType &m, float q)
|
||||
|
|
Loading…
Reference in New Issue