Skip to main content
100%

Urquhart Force Mesh

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Nov 17, 2016
Created on Oct 19, 2016

A force-directed simulation of 200 points, with the Urquhart graph—a subset of the Delaunay triangulation—drawn as gray links on a canvas. The code uses `d3.forceSimulation` for layout, `d3.voronoi` to compute the Delaunay diagram, and a custom `urquhart()` function to extract the graph by removing the longest edge of each triangle. Canvas 2D rendering shows the moving nodes as black dots. The first node follows the mouse, injecting a small `alpha` restart to keep the network shifting. The data is procedurally generated with `d3.range`.

AI-generated description

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

In another variant I toss in some Brownian motion.

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>

gpl-3.0 Licensed

Similar vizzes