
Fract-A-Castle
thingiverse
**UPDATE 11/8/15**: Customiser's script rendering time limits are severely hindering mould and fractal generation. I have uploaded sample STLs instead, recommending running the .scad file locally with openSCAD. Simply download openSCAD (http://www.openscad.org/downloads.html), load the .scad file, and press F6 to render models with any variables you like. Fract-A-Castle is a completely customizable generator of sandcastle moulds described by 2D and 3D Julia set fractal patterns. It has never been easier to amaze onlookers with the beauty of mathematics. **The Idea** Fractals are one of the most strikingly beautiful areas of mathematics. Julia set fractal patterns like those in Fract-A-Castle can be generated from quadratic iterations. These iterations, such as z → z^2 + c, describe a process: take a complex number, square it, and add a constant complex number c. Repeating this process iteratively reveals a pattern known as the Julia set, consisting of all z on the complex plane where z → z^2 + c does not diverge exponentially. Through varying both the real and imaginary components of c, many different beautiful Julia set fractal patterns can be generated. I also conceived of generating 3D Julia set fractals, called capstones, each vertical level of which would be obtained from a higher number of quadratic iterations. The capstones reveal visually how fractal patterns emerge and are a great way to teach others about the beauty of complex dynamics. **Implementation** After tinkering around, I was eventually able to implement a Julia set fractal generator in openSCAD. This was quite challenging, especially with my limited coding experience. I had to learn functional programming instead of objective-oriented programming and work with compile-time variables of openSCAD instead of run-time variables of MATLAB and C. My final generator was achieved through recursion and pseudo-complex number representation. The next step was building fundamental designs we associate with castles: walls, towers, and battlements. I also incorporated a text mould generator to enable decorating or labeling fractals with text and Unicode characters. Finally, I reworked and eliminated some features for increased printability and ease-of-use with wet sand. The towers were originally designed with customizable overhang angles but it was very difficult to incorporate this feature with a sandcastle mould which must be vertically convex to enable separation of sand from mould. **Result** Fract-A-Castle is the ultimate tool for demonstrating mathematical prowess at the beach. One can use large 2D fractal moulds like cookie cutters, leaving rows of fractal patterns in the sand. Three-dimensional capstones can be generated, enabling onlookers to better understand the emergence of fractal patterns over successive iterations. Finally, one can combine these fractals with a fully parametric classic castle design to add a new mathematical twist to the timeless art of sandcastles.
With this file you will be able to print Fract-A-Castle with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Fract-A-Castle.