Skip to content

Instantly share code, notes, and snippets.

@chuckis
Created June 1, 2016 16:34
Show Gist options
  • Save chuckis/3f77a048446e0984f97c713e1d967dad to your computer and use it in GitHub Desktop.
Save chuckis/3f77a048446e0984f97c713e1d967dad to your computer and use it in GitHub Desktop.
part of all-pad
// inner-pad.scad
//lad-cube.scad
module one-romb() {
scale ([1, 0.7, 1]) rotate ([45, 0, 0]) cube([30, 1, 1], center=true);
}
//lad-rombs.scad
module lad-rombs() {
for(i= [1 : 30]){
translate ([0, i - (i * 0.3), 0]) one-romb();
}
}
module tu-rombs(){
translate([10, 5 , 0]) rotate([0, 0, 70]) lad-rombs();
lad-rombs();
}
//tu-rombs(); on z-axis [-0.7 0.7]
difference(){
difference(){
translate([0, -3, 2]) rotate ([0, 0, 55]) tu-rombs();
linear_extrude(height=2) {
hull () {
translate ([0, 5, 0]) circle (5.5, center=true);
square ([11, 10], center=true);
}
}
}
translate ([0, 0, 0.4]) {
linear_extrude(height=1) {
hull () {
translate ([0, 5, 0]) circle (5.5, center=true);
square ([11, 10], center=true);
}
}
}
}
//on z-axis [0 0.9]
linear_extrude(height=0.9) {
hull () {
translate ([0, 4.88, 0]) circle ( 6.12, center=true);
square ([ 12.24, 11 ], center=true);
}
}
// inner-pad ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment