OpenSCAD Snowflake Ornament example
Holiday
Lesson 25 of 28
Repeat one arm around a center with a for loop and let a random seed give every snowflake its own branches.
Try changing:
top_textsymbolbottom_texttext_reliefarmsradiusarm_widthbranchesseedcenter_sizethicknessloop_holeLow compile complexity. Many small hulls but all flat; compiles quickly.
How this model works
One arm is a hull of two circles, with mirrored branches at 55 degrees. rands(min, max, count, seed) returns the same lengths for the same seed, so a seed always rebuilds the same snowflake, and every arm reuses those lengths for symmetry. A for loop rotates the arm around the center, and circle with $fn = arms makes the matching hexagon (or pentagon) that carries the message. Text size is estimated from the character count, so short names read best on the small center. It prints flat in one piece.
Untitled project
main.scad
Loading draft
Ready
Z up · geometry preview
Your geometry will appear here
Preview or render the model to inspect it in 3D.
STL preview
Grid 10 units · Drag: orbit · Right-drag / two fingers: pan · Scroll / pinch: zoom
0 messages
Make it your own
Try seeds until you find a favourite, then set arms to 8 and branches to 4. Add a small circle at the tip of each arm.
Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.