added CopyWedgeVertUV

This commit is contained in:
Nico Pietroni 2015-09-14 12:00:33 +00:00
parent 3323ae51af
commit cb9e276b1b
1 changed files with 132 additions and 123 deletions

View File

@ -154,6 +154,15 @@ namespace vcg {
m.face[i].WT(j).P()=m.face[i].V(j)->T().P();
}
static void CopyWedgeVertUV(MeshType &m,bool onlyS=false)
{
for (size_t i=0;i<m.face.size();i++)
{
if ((onlyS)&&(!m.face[i].IsS()))continue;
for (int j=0;j<3;j++)
m.face[i].V(j)->T().P()=m.face[i].WT(j).P();
}
}
};
} //End Namespace Tri
} // End Namespace vcg