OpenSCAD Snowflake Ornament example

OpenSCAD examples
/

Snowflake Ornament

Beginner

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_hole

Low 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

Ctrl/Cmd+Enter or F5: preview · F6: render · Ctrl/Cmd+F: search · Ctrl+Space: complete · Tab: leave editor

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.

FAQ