Skip to content

Instantly share code, notes, and snippets.

@possan
Created March 27, 2016 18:50
Show Gist options
  • Save possan/65cb963ac13083a84adf to your computer and use it in GitHub Desktop.
Save possan/65cb963ac13083a84adf to your computer and use it in GitHub Desktop.
module tube(height, radius, wall, center = false) {
difference() {
cylinder(h=height, r=radius, center=center);
translate([0,0,-1]) cylinder(h=height + 2, r=radius- wall, center=center);
}
}
for(k=[0: 20.5: 300]) {
P = k / 300.0;
rotate([k*3.0,0,0])
translate([0, 3.3 - 3.3 * P,0])
scale(1.0 - 0.4 * P)
// translate([0,0,0.1 * k])
// cylinder(0.1, $fn=50);
tube(0.3, 1.0, 0.1, $fn=30);
// sphere(1, $fn=40);
}
sphere(0.6, $fn=40);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment