diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-20 14:02:04 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-20 14:02:04 +0200 |
commit | dd2d59a1b26437904744d0604e85dfdcb6fbad27 (patch) | |
tree | 93cd375354f8d2826855871add92b2ea2f6be2a8 | |
parent | dd1d4771adb3583403e0fe90e09eaa79a9ff2e88 (diff) | |
download | cv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.tar.gz cv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.tar.bz2 cv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.zip |
hst: Use the middle of a cell for visualization
-rw-r--r-- | hst.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |