mirror of https://github.com/CGAL/cgal
Bugfix: do not divide by NB if 0
This commit is contained in:
parent
b5c585b8e3
commit
a8b534de2f
|
|
@ -105,7 +105,8 @@ public:
|
|||
mean += get(point_map, *(input.begin()+(*it))).z();
|
||||
++ nb;
|
||||
}
|
||||
|
||||
if (nb == 0)
|
||||
continue;
|
||||
mean /= nb;
|
||||
dem(i,j) = mean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue