Thursday, January 14, 2021

Genuary 2021 Day 14a "Subdivision"


I wasn't super satisfied with my sphereflake render as a response to "Subdivision", though I could tell myself that it sort of worked.

I tried again. I took a region of space (a circle), then I divided that region in half along a line that cut it roughly in two. And then I cut those regions in half along lines that cut them in halves. And so on, to a depth of 10. 

What you see here is the centers of those regions connected up in a tree (again, a familiar theme). It's not surprising that lines would cross each other, though maybe I'd like the effect better if they didn't. Have to write a new algorithm for that.

Surprisingly, the longest amount of work on this was figuring out why my tree drawing code wasn't properly pruning out previously drawn lines, and that's because I was storing "region.isDrawn=True" and testing "if region.drawn". Ah, Python.


Tools Used
: AxiDraw, DrawSVG

Languages Used: Python3

Development Time: ~2 hours

Drawing Time: ~20 minutes

What's Generative Here: For each region, I try splitting it along 16 different random splitting planes, and pick the one that gives the greatest distance between extremes. 



No comments:

Post a Comment