Skip to content

Instantly share code, notes, and snippets.

@Shinichi-Ohki
Created May 24, 2020 04:36
Show Gist options
  • Save Shinichi-Ohki/ec9463c0ca53bcd40cc2cc61aa8bb12f to your computer and use it in GitHub Desktop.
Save Shinichi-Ohki/ec9463c0ca53bcd40cc2cc61aa8bb12f to your computer and use it in GitHub Desktop.
ヘッドフォンフック Openscad
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);
}
}
@Shinichi-Ohki
Copy link
Author

スクリーンショット 2020-05-24 13 38 53
スクリーンショット 2020-05-24 13 38 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment