From dd2d59a1b26437904744d0604e85dfdcb6fbad27 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 20 Apr 2012 14:02:04 +0200 Subject: hst: Use the middle of a cell for visualization --- hst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hst.c b/hst.c index e6628b1..6207b57 100644 --- a/hst.c +++ b/hst.c @@ -114,9 +114,9 @@ main(int argc, char *argv[]) cell = &hst.cells[p[0] / INTERVAL][p[1] / INTERVAL][p[2] / INTERVAL]; calculate_index(&hst, cell->max, &i, &j, &k); - p[0] = i * INTERVAL; - p[1] = j * INTERVAL; - p[2] = k * INTERVAL; + p[0] = i * INTERVAL + INTERVAL / 2; + p[1] = j * INTERVAL + INTERVAL / 2; + p[2] = k * INTERVAL + INTERVAL / 2; } } -- cgit