Skip to content

Commit

Permalink
Merge pull request #1699 from jpolchlo/feature/Voronoi
Browse files Browse the repository at this point in the history
Repaired non-robust Delaunay triangulator.
  • Loading branch information
lossyrob committed Nov 2, 2016
2 parents 91ddc02 + ed51dd7 commit 5ca4a8b
Show file tree
Hide file tree
Showing 9 changed files with 48,124 additions and 544 deletions.
@@ -1,6 +1,8 @@
package geotrellis.raster.distance

import geotrellis.raster._
import geotrellis.raster.rasterize._
import geotrellis.raster.render._
import geotrellis.raster.testkit._
import geotrellis.vector._
import scala.math.{sqrt, pow}
Expand Down
Expand Up @@ -9,7 +9,7 @@ import scala.math.sqrt
object EuclideanDistanceTile {

def apply(pts: Array[Point], rasterExtent: RasterExtent): Tile = {
val vor = pts.toList.voronoiDiagram(rasterExtent.extent)
val vor = pts.toList.voronoiDiagram()
val tile = DoubleArrayTile.empty(rasterExtent.cols, rasterExtent.rows)

def fillFn(base: Point)(col: Int, row: Int): Unit = {
Expand Down

0 comments on commit 5ca4a8b

Please sign in to comment.