SCAD Lasercut library

It was gone. I’m going to try building it without that library first to get a little more familiar with OpenSCAD. Here’s the current file so far:

thickness=3.1;
height=30;
x=250;
y=80;
for(dividers = [x/6 : x/6 : x-(x/6)])

color("Gold",0.5){
    cube(size = [x,y,thickness]);
    rotate([90,0,0]) translate([0,0,-thickness]) cube(size = [x,height,thickness]);
    rotate([90,0,0]) translate([0,0,-y]) cube(size = [x,height,thickness]);
    rotate([90,0,90]) translate([0,0,0]) cube(size = [y,height,thickness]);
    rotate([90,0,90]) translate([0,0,x-thickness]) cube(size = [y,height,thickness]);
    difference() {
        rotate([90,0,90]) translate([0,0,dividers-thickness]) cube(size = [y,height,thickness]);
        translate([10,10,5+thickness]) cube(size = [x-20,y-20,height-10-thickness]);
    }
}

And the results:

I haven’t subtracted out the part to make the tabs and I need to figure out how to add a smaller section on one end to house my ultrasonic sensor and a little Arduino (see this post for where this project is coming from.)

At this point, it seems to be parametric as I understand things. I can change the variables at the top and the design still looks good. Yay!

1 Like