Mercurial > gemma
comparison pkg/octree/vertex.go @ 988:7dfd3db94e6d
In preparation of persisting import jobs logging is done through an interface.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 20 Oct 2018 19:14:00 +0200 |
parents | a4fe07a21ba7 |
children | a244b18cb916 |
comparison
equal
deleted
inserted
replaced
987:3841509f6e9e | 988:7dfd3db94e6d |
---|---|
437 (*lines)[i] = line | 437 (*lines)[i] = line |
438 } | 438 } |
439 } | 439 } |
440 } | 440 } |
441 | 441 |
442 rings := len(out) | 442 // rings := len(out) |
443 | 443 |
444 // The rest are open line strings. | 444 // The rest are open line strings. |
445 for _, lines := range heads { | 445 for _, lines := range heads { |
446 for _, line := range *lines { | 446 for _, line := range *lines { |
447 out = append(out, line) | 447 out = append(out, line) |
448 } | 448 } |
449 } | 449 } |
450 | 450 |
451 log.Printf("segments before/after merge: %d/%d (%d rings)\n", | 451 // log.Printf("segments before/after merge: %d/%d (%d rings)\n", |
452 len(mls), len(out), rings) | 452 // len(mls), len(out), rings) |
453 | 453 |
454 return out | 454 return out |
455 } | 455 } |
456 | 456 |
457 func (a Box2D) Intersects(b Box2D) bool { | 457 func (a Box2D) Intersects(b Box2D) bool { |