added a missing updateQuality::FaceFromVertex

This commit is contained in:
Paolo Cignoni 2012-04-18 21:09:56 +00:00
parent ba507529c8
commit 508c733bd4
1 changed files with 9 additions and 0 deletions

View File

@ -230,6 +230,15 @@ static void FaceArea(MeshType &m)
(*fi).Q()=vcg::DoubleArea(*fi)/2;
}
static void FaceFromVertex( MeshType &m)
{
FaceIterator fi;
for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD())
{
(*fi).Q() = ((*fi).V(0)->Q()+(*fi).V(1)->Q()+(*fi).V(2)->Q())/3.0f;
}
}
static void VertexFromPlane(MeshType &m, const Plane3<ScalarType> &pl)
{
VertexIterator vi;