Advertisement
Guest User

Bad Voronoi datasets

a guest
Jan 11th, 2019
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** Voronoi encounters an error generating polygons. */
  2. const badSet1 = [
  3.     { x: 3130, y: 3130 },
  4.     { x: 2726, y: 2726 },
  5.     { x: 909, y: 909 },
  6.     { x: 826, y: 826 },
  7.     { x: 585, y: 585 },
  8.     { x: 489, y: 489 },
  9.     { x: 473, y: 473 },
  10.     { x: 394, y: 394 },
  11.     { x: 384, y: 384 },
  12.     { x: 360, y: 360 }
  13. ];
  14.  
  15. const badSet2 = [
  16.   { x: 2845, y: 2845 },
  17.   { x: 902, y: 902 },
  18.   { x: 3142, y: 3142 },
  19.   { x: 1354, y: 1354 },
  20.   { x: 2994, y: 2994 },
  21.   { x: 2457, y: 2457 },
  22.   { x: 2059, y: 2059 },
  23.   { x: 2522, y: 2522 },
  24.   { x: 552, y: 552 },
  25.   { x: 224, y: 224 }
  26. ];
  27.  
  28. const badSet3 = [
  29.   { x: 1925, y: 1925 },
  30.   { x: 1595, y: 1595 },
  31.   { x: 1373, y: 1373 },
  32.   { x: 442, y: 442 },
  33.   { x: 1094, y: 1094 },
  34.   { x: 206, y: 206 },
  35.   { x: 3166, y: 3166 },
  36.   { x: 1639, y: 1639 },
  37.   { x: 1194, y: 1194 },
  38.   { x: 1748, y: 1748 }
  39. ];
  40.  
  41. const badSet4 = [
  42.   { x: 101, y: 101 },
  43.   { x: 1220, y: 1220 },
  44.   { x: 1244, y: 1244 },
  45.   { x: 2623, y: 2623 },
  46.   { x: 1981, y: 1981 },
  47.   { x: 412, y: 412 },
  48.   { x: 835, y: 835 },
  49.   { x: 1959, y: 1959 },
  50.   { x: 248, y: 248 },
  51.   { x: 14, y: 14 }
  52. ];
  53.  
  54. /** Voronoi is straight up wrong. */
  55. const justWrongSet = [
  56.   { x: 800, y: 800 },
  57.   { x: 190, y: 190 },
  58.   { x: 2811, y: 2811 },
  59.   { x: 1415, y: 1415 },
  60.   { x: 2613, y: 2613 },
  61.   { x: 563, y: 563 },
  62.   { x: 2002, y: 2002 },
  63.   { x: 1979, y: 1979 },
  64.   { x: 1056, y: 1056 },
  65.   { x: 1197, y: 1197 }
  66. ];
  67.  
  68. /** Voronoi generator gets caught in an infinite loop. */
  69. const infiniteLoopSet = [
  70.   { x: 794, y: 794 },
  71.   { x: 1734, y: 1734 },
  72.   { x: 1780, y: 1780 },
  73.   { x: 191, y: 191 },
  74.   { x: 1143, y: 1143 },
  75.   { x: 2077, y: 2077 },
  76.   { x: 1194, y: 1194 },
  77.   { x: 2499, y: 2499 },
  78.   { x: 2665, y: 2665 },
  79.   { x: 2329, y: 2329 }
  80. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement