Mercurial > gemma
comparison cmd/tin2octree/builder.go @ 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 |
comparison
equal
deleted
inserted
replaced
674:120a82bd9953 | 675:1cb565d244cf |
---|---|
54 tb.leaves++ | 54 tb.leaves++ |
55 return int32(-(pos + 1)) | 55 return int32(-(pos + 1)) |
56 } | 56 } |
57 | 57 |
58 pos := len(tb.index) | 58 pos := len(tb.index) |
59 tb.index = append(tb.index, 0, 0, 0, 0) | 59 tb.index = append(tb.index, |
60 0, 0, 0, 0, | |
61 0, 0, 0, 0) | |
60 | 62 |
61 bbox := interpolate(min, max) | 63 bbox := interpolate(min, max) |
62 | 64 |
63 bboxes := make([][2]vertex, len(cubes)) | 65 bboxes := make([][2]vertex, len(cubes)) |
64 | 66 |