changeset 3633:cfb4e01f2b7f single-beam

Fixed hull construction.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 11 Jun 2019 14:58:39 +0200
parents 943c454d5633
children db7136854a51
files pkg/octree/triangulation.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/octree/triangulation.go	Tue Jun 11 14:46:14 2019 +0200
+++ b/pkg/octree/triangulation.go	Tue Jun 11 14:58:39 2019 +0200
@@ -179,7 +179,7 @@
 		n := i * 3
 		for j := int32(0); j < 3; j++ {
 			e := n + j
-			if t.Halfedges[e] < 0 || removed[e/3] {
+			if f := t.Halfedges[e]; f < 0 || removed[f/3] {
 				//if t.Halfedges[e] < 0 {
 				edges = append(edges, [2]int32{
 					t.Triangles[e],