diff cmd/octree2contour/loader.go @ 680:c79c7be29a7a octree

octree: Small fix in horizontal traversal.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 19 Sep 2018 18:07:28 +0200
parents 7bb961d750b6
children a8d32a11b113
line wrap: on
line diff
--- a/cmd/octree2contour/loader.go	Wed Sep 19 17:35:00 2018 +0200
+++ b/cmd/octree2contour/loader.go	Wed Sep 19 18:07:28 2018 +0200
@@ -142,7 +142,7 @@
 		max float64
 	}
 
-	if h < ot.min.z || h > ot.max.z {
+	if h < ot.min.z || ot.max.z < h {
 		return
 	}