Skip to main content

Fractal Carpet, OpenSCAD, math and more...

During our week 2 class, we worked on creating a carpet fractal in OpenSCAD, which I named "Bombers" (based on the resemblance to a stealth bomber) I created this by modifying some set code in OpenSCAD. The original design was a 100mm square with minimal depth, missing 1/16 of its area. My assignment was to subtract additional area and repeat the design multiple times.

Original shape, code featured on the left with directions.
Dr. Schreck and I worked on computing the area of the shape, trying to determine the area of the fractal at its first, second and third iterations.


I then recreated the shape in OpenSCAD by adding two "/" marks before the location in the code, indicating to the program to subtract that area. My resulting n=1 looked like the following.

n=1

n=2

n=3

n=4

n=4 detail
In class, we continued to work on the math involved in the fractal, and produced the following calculation of the geometric series needed to continue subtracting spaces from the object.



Fractional Dimension... Discovering shapes with dimensions that aren't strictly 1, 2 or 3.

In order to understand fractional dimensions, we began by looking at several basic shapes, namely cubes, squares and lines. If I have a line, a square and a cube, and I double their size, I get a line (1=11) that is twice as long (2=11), a square (1=12) that is twice as large (4=22), a cube (1=13) that is twice as large (8=23)... I can see that the area/volume of the object is the first number and the second number is the scale factor. In this case, 2. The third number (the exponent) is the dimension. (Squares are 2-dimensional, cubes are 3...)

In the case of fractals, normally a self-similar part of the object is subtracted (or added) and to find the area of the object, or the area that's being subtracted, we use the formula SD= 1/N.

Scale factor to the power of Dimension is equal to 1 over N (number of copies).

In the case of my Bomber fractal, 3 of the 16 possible squares are missing from my initial stage, and then 3 additional squares disappear from each of the remaining 13 squares each time the fractal is repeated.

Using logarithms to calculate the dimension, we begin with (1/4)D= 1/13.
We bring the D down in front and solve D log (1/4) = log (1/13).
Dividing both sides by log (1/4), we end up with D on the left side, and using a calculator to divide log (1/13) by log (1/4), we get 1.8502.

Comments

Popular posts from this blog

Math 150: Geometry for Artists

Hello, my name is James Miller.  I'm a recent graduate of Saint Xavier University's Art & Design program. In this blog, I'll be detailing my journey through Math 150: Geometry for Artists taught by Dr. Kristen Schreck. Since Math 150 is in a dry-run stage, I will be keeping another blog detailing our progress at  sxu-gfa-summer2019.blogspot.com . Feel free to check it out! Background: I came to Saint Xavier as a non-traditional student in many ways. Not just because I decided to come back to school in my 30's, but because I had a really unconventional high school education. When my brothers were born, I left public school after 7th grade to take care of them while my parents worked, and while I was technically homeschooled, I did not study math in high school. My career has not been overly math reliant, and I've gotten by with calculators, computers and smartphones. But I have experienced many occasions that I wish it was something I had a better h...

First Fractal: Dragon Curve

As my first week assignment, Dr. Schreck directed me to pick a fractal to study and write a brief recap of what I learned, and to find a 3D printable design of that fractal. I chose a design called the "dragon curve" or "Heighway dragon," and a vase created using that fractal that can be 3D printed. design credit: Scott Rodgers @scottyprogrammer on myminifactory.com https://www.myminifactory.com/users/Scottyprogrammer The Fractalfoundation.org  describes a fractal as "a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple process over and over in an ongoing feedback loop." As such, fractals can be composed of very simple or very complex shapes, and explain more completely the surfaces of objects found in nature that don't fit easily into standard geometric shapes like cones, cylinders, cubes and spheres. Most spheres in nature aren't actuall...