fix more warnings

This commit is contained in:
Jane Tournois 2020-04-20 15:23:41 +02:00
parent 3790250916
commit 288c520cd0
1 changed files with 2 additions and 2 deletions

View File

@ -329,11 +329,11 @@ private:
void computePNScale() void computePNScale()
{ {
Vector_3 c = CGAL::NULL_VECTOR; Vector_3 c = CGAL::NULL_VECTOR;
for (unsigned int i = 0; i < PNSize; i++) for (std::size_t i = 0; i < PNSize; i++)
c += Vector_3(PN[6 * i], PN[6 * i + 1], PN[6 * i + 2]); c += Vector_3(PN[6 * i], PN[6 * i + 1], PN[6 * i + 2]);
c /= PNSize; c /= PNSize;
PNScale = 0.f; PNScale = 0.f;
for (unsigned int i = 0; i < PNSize; i++) { for (std::size_t i = 0; i < PNSize; i++) {
float r = distance(c, Vector_3(PN[6 * i], PN[6 * i + 1], PN[6 * i + 2])); float r = distance(c, Vector_3(PN[6 * i], PN[6 * i + 1], PN[6 * i + 2]));
if (r > PNScale) if (r > PNScale)
PNScale = r; PNScale = r;