Skip to content

Instantly share code, notes, and snippets.

@wavejumper
Last active July 25, 2016 13:29
Show Gist options
  • Select an option

  • Save wavejumper/60790a538ff103523415aa9708a0492f to your computer and use it in GitHub Desktop.

Select an option

Save wavejumper/60790a538ff103523415aa9708a0492f to your computer and use it in GitHub Desktop.
module slit () {
translate([0,10,0]) { cube([4,30,15], true); }
}
module bolt(height, dia) {
rotate([0,90,0]) {
cylinder(h=height, d=dia, center=true);
}
}
module dynamo_mount() {
rotate([0,0,30]) {
translate([3,10,0]) {
difference() {
slit();
translate([0,19,0]) { bolt(30, 6); }
}
}
}
}
module fork_mount() {
difference() {
cube([4, 26, 15], true);
translate([0,-7,0]) { bolt(100,5); }
}
}
module mount() {
difference() {
union() {
dynamo_mount();
fork_mount();
}
rotate([0,0,30]) {
translate([7,0,0]) { cube([4,30,15], true); }
}
}
}
mount();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment