added FaceArea

This commit is contained in:
ganovelli 2011-05-18 11:37:18 +00:00
parent 8f8f4fdfc9
commit 46790e61cd
1 changed files with 8 additions and 0 deletions

View File

@ -221,6 +221,14 @@ static void FaceConstant(MeshType &m, float q)
(*fi).Q()=q;
}
/** Assign to each face of the mesh its double area.
*/
static void FaceArea(MeshType &m)
{
FaceIterator fi;
for(fi=m.face.begin();fi!=m.face.end();++fi)
(*fi).Q()=vcg::DoubleArea(*fi);
}
static void VertexFromGaussianCurvature(MeshType &m)
{