Mercurial > gemma
comparison cmd/octreediff/main.go @ 2513:1534df518201 octree-diff
Called STT tree building.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 05 Mar 2019 15:00:42 +0100 |
parents | e0a7571ac13a |
children | 1ec4c5633eb6 |
comparison
equal
deleted
inserted
replaced
2512:2768f74d54ab | 2513:1534df518201 |
---|---|
391 | 391 |
392 now = time.Now() | 392 now = time.Now() |
393 log.Printf("triangulation took %v\n", now.Sub(last)) | 393 log.Printf("triangulation took %v\n", now.Sub(last)) |
394 last = now | 394 last = now |
395 | 395 |
396 var str octree.STRTree | |
397 | |
398 str.Build(tri) | |
399 | |
400 now = time.Now() | |
401 log.Printf("building STR tree took %v\n", now.Sub(last)) | |
402 last = now | |
403 | |
396 builder := octree.NewBuilder(tri.Tin()) | 404 builder := octree.NewBuilder(tri.Tin()) |
397 builder.Build() | 405 builder.Build() |
398 | 406 |
399 now = time.Now() | 407 now = time.Now() |
400 log.Printf("building octree took %v\n", now.Sub(last)) | 408 log.Printf("building octree took %v\n", now.Sub(last)) |