olena-2.0-72-g3ce08d0 mln/core/alias/neighb3d.hh: Fix invalid c8_3d neighborhood.

--- milena/ChangeLog | 4 ++++ milena/mln/core/alias/neighb3d.hh | 14 ++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index f610a5e..c8f5f24 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,9 @@ 2012-05-11 Guillaume Lazzara <z@lrde.epita.fr> + * mln/core/alias/neighb3d.hh: Fix invalid c8_3d neighborhood. + +2012-05-11 Guillaume Lazzara <z@lrde.epita.fr> + Rename point_at_index, delta_index and index_of_point. * mln/accu/line.hh, diff --git a/milena/mln/core/alias/neighb3d.hh b/milena/mln/core/alias/neighb3d.hh index cb2d809..6dd1aae 100644 --- a/milena/mln/core/alias/neighb3d.hh +++ b/milena/mln/core/alias/neighb3d.hh @@ -248,10 +248,16 @@ namespace mln static neighb3d it; if (it.size() == 0) { - static const bool vals[] = { 1, 1, 1, - 1, 0, 1, - 1, 1, 1 }; - convert::from_to(vals, it); + window3d& win = it.hook_win_(); + win + .insert(0, 0, 0) + .insert(0, 0, 1) + .insert(0, 0, 2) + .insert(0, 1, 2) + .insert(0, 2, 2) + .insert(0, 2, 1) + .insert(0, 2, 0) + .insert(0, 1, 0); } return it; } -- 1.7.2.5
participants (1)
-
Guillaume Lazzara