Skip to main content
100%

Urquhart Force Mesh Dance Procrastination

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Oct 21, 2016
Created on Oct 21, 2016

Interacting with the mouse drags a single node, and a custom "dance" force chain pulls nearby points through the simulation. The Urquhart graph, derived from the Delaunay triangulation, is drawn on a Canvas as a network of lines over 200 force-directed points. Using d3.forceSimulation, d3.voronoi, and Canvas 2D context, the edges update each tick, showing the graph’s structure while the points jitter and rearrange. The code filters Delaunay links by removing the longest edge of each triangle to compute the Urquhart mesh.

AI-generated description

Some force-directed points, with the Urquhart graph overlaid. Thanks @enjalot for the idea and time wasted :)

Forked from <a href='http://bl.ocks.org/erlenstar/'>erlenstar</a>'s block: <a href='http://bl.ocks.org/erlenstar/0ba5ee8bd3773d70462523679d4ef5a4'>Delaunay Force Mesh II</a>

forked from <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/56c02237d9951c4bb12ed41cf64d6e4c'>Urquhart Force Mesh Dance</a>

gpl-3.0 Licensed

Similar vizzes