Skip to main content
F3D
Generator bông tuyết Koch parametric bằng OpenSCAD 1

7 images

Giáo Dục

Generator bông tuyết Koch parametric bằng OpenSCAD

By Flondy

Downloads
72
Likes
10
Views
447

Files 5 183.8 KB

  • KochSnowflake_WithMagnets_1766599316.3mf3MF · 39.1 KB
  • KochSnowflake_WithMagnets2_1766599317.3mf3MF · 38.5 KB
  • KochSnowflake_Puzzle_WithMagnets3_1766599318.3mf3MF · 47.7 KB
  • KochSnowflake_WithMagnets4_1766599319.3mf3MF · 52.7 KB

Make a variant with AI

Build another version of this model.

Open Studio

Description

I wanted to print a model of a Koch Snowflake but (at the time of creating this) the only model on Printables that claimed to be an OpenSCAD file to generate a Koch snowflake was actually a list of coordinates for a snowflake that was generated using a python script. This was fine and good but it lead me to challenge myself and implement the entire snowflake generation only using openSCAD. So that's what I did.

The code currently comes with two modules and five examples using these modules

Modules:

  1. Snowflake(Starting_triangle,Iiteration_depth,Height)
    Creates a 3D Koch snowflake of a given thickness from a given equilateral starting triangle.
  2. Stepped_Snowflake(Starting_triangle,Iiteration_depth,Start_height,Color_seed) 
    Creates a 3D Koch Snowflake where each iteration is extruded to a different height.

Examples:

  1. Simple extruded snowflake
  2. Stepped snowflake
  3. Embossed snowflake
  4. Tile the plane
  5. Embossed stepped snowflake

Be careful when setting the iteration depth as the number of sides that needs to be calculated for each iteration grows as 3*4^(n-1). Reference rendering times (for preview rendering) on my MacBook Pro 2022 with all 5 examples enabled are:

  • n = 0:  0:00:00.031
  • n = 1:   0:00:00.036
  • n = 2:  0:00:00.044
  • n = 3:  0:00:00.084
  • n = 4:  0:00:00.214
  • n = 5:  0:00:00.756
  • n = 6:  0:00:02.973
  • n = 7:   0:00:12.514

Im always open for suggestions and feature requests and would be happy about any constructive feedback

Read more Show less

Print spec

Formats
3mfscad
Model files
5
Total size
183.8 KB
Largest file
52.7 KB

0 comments

See all