Little improvement

This commit is contained in:
Paolo Cignoni 2006-07-24 13:39:39 +00:00
parent 68b176d276
commit 10eb316ac5
1 changed files with 2 additions and 2 deletions
vcg/complex/trimesh/create

View File

@ -305,9 +305,9 @@ namespace vcg
// normal angle criterion // normal angle criterion
double c, minC, maxC; double c, minC, maxC;
CoordType axis; CoordType axis;
for (minC=1.0, i=0; i<vertices_num; ++i) for (minC=1.0, i=0; i<vertices_num-1; ++i)
{ {
for (j=0; j<vertices_num; ++j) for (j=i+1; j<vertices_num; ++j)
{ {
c = normals[i]*normals[j]; c = normals[i]*normals[j];
if (c < minC) if (c < minC)