comparison cmd/tin2octree/builder.go @ 674:120a82bd9953 octree

octree: Added loading frame for contour generation.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 19 Sep 2018 13:26:30 +0200
parents 010cc30fdf48
children 1cb565d244cf
comparison
equal deleted inserted replaced
673:9a0246ab3021 674:120a82bd9953
33 33
34 tb.index = append(tb.index, 0) 34 tb.index = append(tb.index, 0)
35 35
36 tb.buildRecursive(triangles, tb.t.min, tb.t.max, 0) 36 tb.buildRecursive(triangles, tb.t.min, tb.t.max, 0)
37 tb.index[0] = int32(len(tb.index)) 37 tb.index[0] = int32(len(tb.index))
38 log.Printf("num nodes: %d\n", tb.index[0])
38 39
39 log.Printf("nodes: %d leaves: %d index %d\n", 40 log.Printf("nodes: %d leaves: %d index %d\n",
40 tb.nodes, tb.leaves, tb.index[0]) 41 tb.nodes, tb.leaves, tb.index[0])
41 } 42 }
42 43