diff cmd/octree2contour/vertex.go @ 718:c0bba602b60e octree

octree: define a type for LineStringZ.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 21 Sep 2018 14:47:44 +0200
parents 614135d69823
children 5af9ab39e715
line wrap: on
line diff
--- a/cmd/octree2contour/vertex.go	Fri Sep 21 11:03:20 2018 +0200
+++ b/cmd/octree2contour/vertex.go	Fri Sep 21 14:47:44 2018 +0200
@@ -99,14 +99,14 @@
 	return 0
 }
 
-func (t *triangle) intersectH(h float64) []vertex {
+func (t *triangle) intersectH(h float64) lineStringZ {
 	sides := [3]int{
 		side(t[0].z, h),
 		side(t[1].z, h),
 		side(t[2].z, h),
 	}
 
-	var points []vertex
+	var points lineStringZ
 
 	for i := 0; i < 3; i++ {
 		j := (i + 1) % 3