Customizable 3D Line Fractal

This is the fractal generator I originally had in mind, not the strange 3D Line Fractal generator I made earlier,…
4
32
0
204
updated October 30, 2022

Description

PDF

This is the fractal generator I originally had in mind, not the strange 3D Line Fractal generator I made earlier, which can yield some interesting results in it's own regard, but gets to chaotic in higher recursions. Basically this is a generalization of the infinite cubic fractal, as it is the simplest fractal that can be generated by it, along with endless other possibilities. Some inputs still don't work even tough they should produce a manifold mesh, maybe it is due to rounding errors or there is still a mistake in my script, testing is really hard, as rendering times are very long. The math in this was really tough to figure out, maybe there is a easier or cleaner method of doing this, but it works(in most cases). The results are not exact as OpenSCAD won't allow connecting triangles only by the edges, they have to share a common point and it won't allow triangles with zero area either, so I need to move the two extra points on each side inwards a bit. This deforms the quadrangles slightly, the amount can be adjusted with the precision setting. Anyways, I'm glad this is finished, I loved fractals since I was a kid and this can be used to make a whole lot of them. Also it was a nice challenge.

In mathematical terms this type of fractals are variants of the Koch curve: http://en.wikipedia.org/wiki/Koch_snowflake

Edit: simplified logic, more special cases work now.

Category: Math

Tags



Model origin

The author marked this model as their own original creation. Imported from Thingiverse.

License