comparison cmd/octree2contour/main.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
children 7bb961d750b6
comparison
equal deleted inserted replaced
673:9a0246ab3021 674:120a82bd9953
1 package main
2
3 import (
4 "flag"
5 "log"
6 "time"
7 )
8
9 var (
10 one = flag.Bool("o", false, "create only a single contour")
11 step = flag.Float64("s", 0.5, "step with")
12 max = flag.Float64("m", 10, "max height from lowest poiint")
13 )
14
15 func process(tree *octree) {
16 // TODO: Implement me!
17 }
18
19 func main() {
20 flag.Parse()
21
22 for _, fname := range flag.Args() {
23 log.Printf("processing %s\n", fname)
24 start := time.Now()
25 tree, err := loadOctree(fname)
26 if err != nil {
27 log.Printf("error: %v\n", err)
28 continue
29 }
30 log.Printf("loading took: %v\n", time.Since(start))
31 process(tree)
32 }
33 }