Thingiverse
Parametric Koch snowflakes
di kitwallace
14
Download
15
Likes
0
Makes
The Koch snowflake is a fractal curve which was first described by Helge von Koch in 1904. The sequence of Koch curves starts with a triangle and successively replaces each side with a new side with added triangle.
This OpenSCAD code uses functions from a larger tiling library based on the use of perimeter descriptions in the form of {sidelength, angle} and Turtle geometry to generate the corresponding polygon.
Due to limits on recursion, we are limited to order 4 curves but since these have 768 sides and order 5 has 3092 sides (3 * 4^N) this is probably high enough for printing or laser cutting.
The code can be modified to generate other fractal curves . For example replacing the Koch side perimeter [240,60,240,60] with [120,300,120,60] yields the Koch antisnowflake
This OpenSCAD code uses functions from a larger tiling library based on the use of perimeter descriptions in the form of {sidelength, angle} and Turtle geometry to generate the corresponding polygon.
Due to limits on recursion, we are limited to order 4 curves but since these have 768 sides and order 5 has 3092 sides (3 * 4^N) this is probably high enough for printing or laser cutting.
The code can be modified to generate other fractal curves . For example replacing the Koch side perimeter [240,60,240,60] with [120,300,120,60] yields the Koch antisnowflake
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!