Remove .take() from demos and tests when using .sampleEquidistant() (#325)
This commit is contained in:
@@ -59,7 +59,7 @@ class TestDelaunay {
|
||||
|
||||
@Test
|
||||
fun testNeighbors() {
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20).take(20)
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20)
|
||||
val d = Delaunay.from(c)
|
||||
for (j in c.indices) {
|
||||
assertTrue(d.neighbors(j).toList().isNotEmpty())
|
||||
|
||||
@@ -7,7 +7,7 @@ import kotlin.test.assertTrue
|
||||
class TestVoronoi {
|
||||
@Test
|
||||
fun testNeighbors() {
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20).take(20)
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20)
|
||||
val d = Delaunay.from(c)
|
||||
val v = d.voronoi(Rectangle(0.0, 0.0, 400.0, 400.0))
|
||||
for (j in c.indices) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import kotlin.test.assertTrue
|
||||
class TestVoronoiDiagram {
|
||||
@Test
|
||||
fun testNeighbors() {
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20).take(20)
|
||||
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20)
|
||||
val d = Delaunay.from(c)
|
||||
val v = d.voronoi(Rectangle(0.0, 0.0, 400.0, 400.0))
|
||||
for (j in c.indices) {
|
||||
|
||||
Reference in New Issue
Block a user