Skip to main content
100%

Finding adjacent voronoi cells

✓ Published0🌍 Public
RRobinL
Last edited Dec 18, 2016
Created on Dec 11, 2016

This interactive visualization shows 30 randomly placed sites and their corresponding Voronoi cells. Moving the mouse repositions the first site, and the diagram updates to highlight all cells adjacent to it in pink, while non-adjacent cells are yellow. The code uses `d3.voronoi` to compute both polygon and link geometry, and `d3.select` with SVG event handlers to drive the redraw. Cell adjacency is determined by checking which polygon data points match the source or target of the current site’s links.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/4df1ce089078eef2a04fb6f91177b72f'>Finding adjacent voronoi cells</a>

mit Licensed

Similar vizzes