@@ -548,8 +548,6 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
548548
549549 auto gbody = body;
550550
551- int it = 0 ;
552-
553551 vector<int > nextid (n);
554552 vector<int > lastid (n);
555553 vector<bool > stillin (n, true );
@@ -558,7 +556,6 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
558556 nextid[n-1 ] = n-1 ; lastid[0 ] = 0 ;
559557
560558 while (true ) {
561- it++;
562559 int cand = -1 ;
563560 ld cv = 0 ;
564561 for (int i=1 ; i<n-1 ; i++) if (stillin[i]) {
@@ -787,7 +784,6 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
787784 hyperpoint pscenter = psmin (center);
788785
789786 ld pos = 0 ;
790- int qty = 0 , qtyall = 0 ;
791787
792788 vector<hyperpoint> pss;
793789
@@ -800,8 +796,7 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
800796 ld mindist = 1e9 ;
801797 for (int i=0 ; i<isize (pss); i+=3 ) if (pss[i][2 ] < zmid || (WDIM == 3 && !gproduct)) {
802798 ld d = sqhypot_d (2 , pss[i]-pscenter) + sqhypot_d (2 , pss[i+1 ]-pscenter) + sqhypot_d (2 , pss[i+2 ]-pscenter);
803- if (d < mindist) mindist = d, pos = min (min (pss[i][2 ], pss[i+1 ][2 ]), pss[i+2 ][2 ]), qty++;
804- qtyall++;
799+ if (d < mindist) mindist = d, pos = min (min (pss[i][2 ], pss[i+1 ][2 ]), pss[i+2 ][2 ]);
805800 }
806801
807802 if (&eye == &shSkullEyes) cgi.eyelevel_human = pos = zc (eyepos) - 0.06 * SH * 0.05 ;
0 commit comments