diff pkg/controllers/diff.go @ 2576:647a58ee9ae9

Morphological differences: Centralized generation of height values for differences in octree package.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 11 Mar 2019 15:04:23 +0100
parents 59e7a011d347
children 5125db802b79
line wrap: on
line diff
--- a/pkg/controllers/diff.go	Mon Mar 11 14:50:04 2019 +0100
+++ b/pkg/controllers/diff.go	Mon Mar 11 15:04:23 2019 +0100
@@ -169,6 +169,13 @@
 	builder.Build(removed)
 	log.Printf("info: building octree took %v\n", time.Since(start))
 
+	tree := builder.Tree()
+
+	log.Printf("info: min/max: %f %f\n", tree.Min.Z, tree.Max.Z)
+
+	heights := octree.SampleDiffHeights(tree.Min.Z, tree.Max.Z, 0.1)
+	log.Printf("info: num heights: %d\n", len(heights))
+
 	// TODO: Implement me!
 
 	return