Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // HPC Hole drill templates
- //openscad
- //Hole size = 1/8th inch = 3.175mm
- // idea: ridge block w hole at locatation. engrave module name
- $fn =100;
- hole = 1.6;
- //insetX=14mm insetY=14mm insetZ=5mm
- iX=13;
- iY=13;
- iZ=5;
- //outsetX,Y,Z
- oX=iX+2;
- oY=iY+2;
- oZ=5;
- //module body(){
- //difference(){
- //cube([oX,oY,oZ]);
- //cube([iX,iY,iZ]);
- //}
- //}
- module body() {
- difference() {
- cube([oX,oY,oZ]);
- translate([0,0,3]) cube([iX,iY,iZ]);
- }
- }
- //all the bodies are the same, the cone placement differs
- module cone(){
- //translate([0,0,5]) difference(){
- //cylinder(iZ-2,hole+2,hole+2);
- cylinder(iZ-2,hole,hole);
- }
- //}
- module TL(){
- // top left
- difference(){
- body();
- translate([6.8,7.43,0])cone();
- }}
- module TR(){
- // top right
- body();
- }
- module BL(){
- //bottom left
- body();
- }
- module BR(){
- // bottom right
- body();
- }
- TL();
Advertisement
Add Comment
Please, Sign In to add comment