Skip to content

Instantly share code, notes, and snippets.

@russell
Created August 3, 2016 23:00
Show Gist options
  • Save russell/8f7f06c5265d8d9f77165b16e96f1f98 to your computer and use it in GitHub Desktop.
Save russell/8f7f06c5265d8d9f77165b16e96f1f98 to your computer and use it in GitHub Desktop.
%cylinder(2, r=8);
module spiral_part(angle, height, distance, radius) {
rotate(angle, [0, 0, 1])
translate([distance, 0, 0 ])
rotate([90,0,0])cylinder(height, r = r, $fn=5);
}
module spiral(){
height =1;
union (){
for (i = [3:0.1:8]){
spiral_part(angle = i*360/7, height=height, distance = i + 6, r = i/2);
}}
}
spiral();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment