AoC 2021 Day 22 Christmas Tree Ornament

A customizable Christmas Tree Ornament generated from Advent of Code puzzle input for Day 22 2021.
4
10
0
215
updated December 24, 2022

Description

PDF

The annual programming challenge Advent of Code had a puzzle this last year involving computing the volume of an overlapping series of cubes. The puzzle fits nicely into something OpenSCAD could visualize so for fun I decided to make it into a Christmas Tree ornament.

The uploaded files are all based on my puzzle input, but you can re-run the generator to get your own custom model. The source is at https://github.com/dimo414/advent-2021 and it just takes a few steps to generate (assuming you have Rust installed):

$ git clone https://github.com/dimo414/advent-2021

$ cd advent-2021/

$ cp path/to/your/input.txt src/bin/22/input.txt

$ cargo run --bin 22 -- render > render.scad

Unfortunately the model is somewhat tedious to print since the middle is hollow and it consists of so many small features. I found slicing the model roughly in half and printing with the new “snug” supports worked reasonably well, though getting the supports out of all the nooks and crannies takes a bit of elbow grease. If you are able to print with soluble supports I imagine that would be much easier.

Once printed, cleaned, and glued together I simply drilled a hole into one of the cubes and screwed an eye bolt to create the hook point to hang it on the tree.

Tags



Model origin

The author marked this model as their own original creation.

License