Mercurial > gemma
comparison pkg/controllers/diff.go @ 4640:fb09a43b062e
Decouple the tracing of the iso areas from the octree data structure.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 11 Oct 2019 20:09:37 +0200 |
parents | 4380f5483c03 |
children | 5ef04ae34872 |
comparison
equal
deleted
inserted
replaced
4639:4380f5483c03 | 4640:fb09a43b062e |
---|---|
294 return | 294 return |
295 } | 295 } |
296 | 296 |
297 heights = common.DedupFloat64s(heights) | 297 heights = common.DedupFloat64s(heights) |
298 | 298 |
299 areas := tree.TraceAreas(heights, isoCellSize) | 299 areas := octree.TraceAreas(heights, isoCellSize, tree.Min, tree.Max, tree.Value) |
300 | 300 |
301 var size int | 301 var size int |
302 | 302 |
303 for i, a := range areas { | 303 for i, a := range areas { |
304 if len(a) == 0 { | 304 if len(a) == 0 { |