minor changes

This commit is contained in:
Nico Pietroni 2013-02-19 13:54:14 +00:00
parent 1f91e92f9a
commit 4799f4c4bc
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,9 @@ namespace vcg {
VertexType *v0=(*fi).V(0);
VertexType *v1=(*fi).V1(0);
VertexType *v2=(*fi).V2(0);
assert(v0!=v1);
assert(v1!=v2);
assert(v0!=v2);
UVCoordType uv1=v1->T().P();
UVCoordType uv2=v2->T().P();
int index=v0-&(m.vert[0]);
@ -138,6 +141,7 @@ namespace vcg {
for (int i=0;i<m.vert.size();i++)
{
if ((fix_borders)&&(m.vert[i].IsB()))continue;
if (num[i]==0)continue;
m.vert[i].T().P()=UVpos[i]/(ScalarType)num[i];
}
}