Created
May 24, 2020 04:36
-
-
Save Shinichi-Ohki/ec9463c0ca53bcd40cc2cc61aa8bb12f to your computer and use it in GitHub Desktop.
ヘッドフォンフック Openscad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w = 25; | |
$fn=32; | |
module kadomaru(w,dir) { | |
rotate(dir*90) { | |
intersection() { | |
translate([2,0,0]) { | |
cylinder(h=w,r=2); | |
} | |
cube([2,2,w]); | |
} | |
} | |
} | |
kadomaru(w,0); | |
translate([18,2,0]) { | |
kadomaru(w,3); | |
} | |
translate([20,-50,0]) { | |
kadomaru(w,1); | |
} | |
translate([65,-48,0]) { | |
kadomaru(w,2); | |
} | |
translate([2,0,0]) { | |
cube([16,2,w]); | |
} | |
translate([0,-20,0]) { | |
cube([2,20,w]); | |
translate([1,0,0]) { | |
cylinder(h=w,r=1); | |
} | |
} | |
translate([18,-48,0]) { | |
cube([2,48,w]); | |
} | |
translate([20,-50,0]) { | |
rotate([-5,0,0]) { | |
cube([43,2,w/2*1.02]); | |
} | |
} | |
translate([20,-50,w]) { | |
rotate([0,180,0]) { | |
mirror([1,0,0]){ | |
rotate([-5,0,0]) { | |
cube([43,2,w/2*1.02]); | |
} | |
} | |
} | |
} | |
translate([63,-48,0]) { | |
cube([2,8,w]); | |
translate([1,8,0]) { | |
cylinder(h=w,r=1); | |
} | |
} | |
Author
Shinichi-Ohki
commented
May 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment