mirror of https://github.com/CGAL/cgal
fix more warnings
This commit is contained in:
parent
3790250916
commit
288c520cd0
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue