1 / 3
AoC 2021 Day 22 Christmas Tree Ornament — image 1
1 / 3

AoC 2021 Day 22 Christmas Tree Ornament

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

A customizable Christmas Tree Ornament generated from Advent of Code puzzle input for Day 22 2021.

Rating
0 / 5
Likes
5
Downloads
19
Makes
0
Views
295
Reviews
0

Updated at source:

Model information

License
Creative Commons — Attribution

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