AoC 2021 Day 22 Christmas Tree Ornament
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
A customizable Christmas Tree Ornament generated from Advent of Code puzzle input for Day 22 2021.
- Ocena
- 0 / 5
- Polubienia
- 5
- Pobrania
- 19
- Wydruki
- 0
- Wyświetlenia
- 294
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Winter & Christmas & New Year's
- Licencja
- 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.