Webgl realtime play:
https://alexbeutel.com/webgl/voronoi.html
数组 or 对象?
嵌套数组:用双 [ ]
let poly = [ [1, 2], [2, 3] ];
可以用 poly[i][j] 访问
对象Object:用{ }
let poly = {
point1: [1, 2],
point2: [2, 3]
};
console.log(poly.point1); // [1, 2]
console.log(poly.point1[0]); // 1
可以用 poly["A"][0] || poly.point1访问