changeset 675:1cb565d244cf octree

octree: Allocate 8 child nodes per node not 4.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 19 Sep 2018 15:37:37 +0200
parents 120a82bd9953
children 7bb961d750b6
files cmd/tin2octree/builder.go
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/tin2octree/builder.go	Wed Sep 19 13:26:30 2018 +0200
+++ b/cmd/tin2octree/builder.go	Wed Sep 19 15:37:37 2018 +0200
@@ -56,7 +56,9 @@
 	}
 
 	pos := len(tb.index)
-	tb.index = append(tb.index, 0, 0, 0, 0)
+	tb.index = append(tb.index,
+		0, 0, 0, 0,
+		0, 0, 0, 0)
 
 	bbox := interpolate(min, max)