8.Voronoi Diagrams 沃罗诺伊图

576 阅读2分钟

Voronoi Diagrams (d3-delaunay)

Compute the Voronoi diagram of a set of two-dimensional points. 使用二维点计算沃罗诺伊图

  • new Delaunay - create a delaunay triangulation for an array of point coordinates.为一组坐标数组创建一个劳德三角剖分
  • Delaunay.from - create a delaunay triangulation for an iterable of points. 为一组可迭代点创建劳德三角剖分
  • delaunay.points - the coordinates of the points. 获取delaunay内的点坐标
  • delaunay.halfedges - the delaunay halfedges.获得delaunay 半边数据结构
  • delaunay.hull - the convex hull as point indices. 获得作为点索引的凸包
  • delaunay.triangles - the delaunay triangles.获得delaunay三角
  • delaunay.inedges - the delaunay inedges 获取delaunay内边
  • delaunay.find - find the closest point in the delaunay triangulation.查找delaunay三角上最近的点
  • delaunay.neighbors - the neighbors of a point in the delaunay triangulation.获得delaunay上某点附近的点
  • delaunay.render - render the edges of the delaunay triangulation.渲染delaunay三角的边
  • delaunay.renderHull - render the convex hull.渲染delaunay三角的的凸包
  • delaunay.renderTriangle - render a triangle.渲染一个三角形
  • delaunay.renderPoints - render the points.渲染点
  • delaunay.hullPolygon - the closed convex hull as point coordinates.作为点坐标的闭凸包
  • delaunay.trianglePolygons - iterate over all the triangles as polygons.迭代所有三角形作为一个多边形
  • delaunay.trianglePolygon - return a triangle as a polygon.将三角形返回为多边形
  • delaunay.update - update a delaunay triangulation in place.平稳的更新德劳内三角
  • delaunay.voronoi - compute the voronoi diagram associated with a delaunay triangulation.计算出delaunay三角相关的沃罗诺伊图
  • voronoi.delaunay - the voronoi diagram’s source delaunay triangulation.获得沃罗诺伊图相关的dalaunay三角
  • voronoi.circumcenters - the triangles’ circumcenters.三角外心
  • voronoi.vectors - directions for the outer (infinite) cells of the voronoi diagram.沃罗诺伊图外部空间方向
  • voronoi.xmin - set the xmin bound of the extent.设置x轴方向上的区域最小边界
  • voronoi.ymin - set the ymin bound of the extent.设置y轴方向上的区域最小边界
  • voronoi.xmax - set the xmax bound of the extent.设置x轴方向上的区域最大边界
  • voronoi.ymax - set the ymax bound of the extent.设置y轴方向上的区域最大边界
  • voronoi.contains - test whether a point is inside a voronoi cell.测试一个点是否在一个沃罗诺伊单位内
  • voronoi.neighbors - the neighbors of a point in the voronoi diagram.获得沃罗诺伊图中一个点附近的
  • voronoi.render - render the mesh of voronoi cells.渲染沃罗诺伊单位组成的网
  • voronoi.renderBounds - render the extent.渲染区域
  • voronoi.renderCell - render a voronoi cell.渲染一个沃罗诺伊单位
  • voronoi.cellPolygons - iterate over all the cells as polygons.迭代所有单位作为一个多边形
  • voronoi.cellPolygon - return a cell as a polygon.返回一个多变形细胞
  • voronoi.update - update a voronoi diagram in place.平和的更新一个沃罗诺伊图