Skip to content

Instantly share code, notes, and snippets.

@chuckis
Created May 31, 2016 20:03
Show Gist options
  • Save chuckis/2d1fd3d3e5d65d8e9afbb23ffa35b414 to your computer and use it in GitHub Desktop.
Save chuckis/2d1fd3d3e5d65d8e9afbb23ffa35b414 to your computer and use it in GitHub Desktop.
pattern of lad-pad.
module romb() {
scale ([1, 1, 1]) rotate ([20, 0, 0]) cube([5, 3, 1], center=true);
}
//diamond_rombs.scad
module diamond(){
rotate ([0, 0, -45]) {
for(i= [0 : 3]){
union(){ translate ([0, i - (i * 0.3), 0]) scale ([1, 1.2, 0.6]) romb();}
}
}
}
module row_d(){
for (x=[0: 10]) {translate([x+(x * 0.7), 0, 0]) diamond();
}
}
row_d();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment