Mercurial > gemma
diff cmd/tin2octree/builder.go @ 678:7bb961d750b6 octree
octree: traverse horizontally over tree to find out which triangles to process.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 19 Sep 2018 17:34:19 +0200 |
parents | 1cb565d244cf |
children | b17e3ce53285 |
line wrap: on
line diff
--- a/cmd/tin2octree/builder.go Wed Sep 19 15:37:37 2018 +0200 +++ b/cmd/tin2octree/builder.go Wed Sep 19 17:34:19 2018 +0200 @@ -48,7 +48,7 @@ ) int32 { if len(triangles) <= 16 || depth > 8 { pos := len(tb.index) - tb.index = append(tb.index, int32(len(tb.index))) + tb.index = append(tb.index, int32(len(triangles))) tb.index = append(tb.index, triangles...) //log.Printf("leaf entries: %d (%d)\n", len(triangles), depth) tb.leaves++