Wednesday, January 20, 2021

Genuary 2021 Day 20: "No Loops"

From Many, One 




This was a pretty easy thing at its base - I generated a set of points using a Bridson Blue Noise Generator, one of my favorites. I then used SciPi's Delaunay to turn these points into a triangular mesh. I then pulled edges at random from that mesh into a spanning tree - visiting each vertex exactly once (no loops).

At this point, the image on screen was complete, but I knew it would draw poorly on the AxiDraw to draw each edge individually, so I wrote a routine to glue edges together into paths, which mostly worked, but I overdrew a few edges (paths with a single edge?) which worked out OK.

Also, some of the edges didn't draw at all, the pen hit a dry spot, which happened a surprising number of times.



Tools Used: AxiDraw, Pentel 5mm pen 

Languages Used: Python

Development Time: ~2 hours

Drawing Time: ~1 hour

What's Generative Here: I started with a generated set of points, I connected the points into a spanning tree by randomly including edges.




No comments:

Post a Comment