Skip to content
3drag_powerpwm_boxtop.scad 3.12 KiB
Newer Older
use <roundedcube.scad>
use <fast-clamp05.scad>

X=39;
Y=46;
H_X=14;
H_Y=11;

difference(){
union(){
difference(){
   union(){
      roundedcube([X,Y,2], false, 1, "z");
      translate([3,3,1]) roundedcube([X-6,Y-6,9], false, 1, "z");
   }
  translate([4,4,1]) roundedcube([X-8,Y-8,10], false, 1, "z");
   
  translate([2.9,2.9,-1]) roundedcube([H_X,H_Y,15], false, 1, "z");
  translate([2.9,Y-2.9-H_Y,-1]) roundedcube([H_X,H_Y,15], false, 1, "z");
   
  translate([2.9,(Y/2)-(H_X/2),-1]) roundedcube([H_Y,H_X,15], false, 1, "z");
 }
 
 translate([3.1,14,1])roundedcube([10,2,9], false, 1, "z");
 translate([3.1,16+H_X,1])roundedcube([10,2,9], false, 1, "z");
 
 translate([X-(3.1+10),3.1,1]) roundedcube([10,10,9], false, 1, "z");
 translate([X-(3.1+10),Y-(3.1+10),1]) roundedcube([10,10,9], false, 1, "z");
 
 translate([X-(3.1+18),3.1,1]) roundedcube([10,5,7], false, 1, "z");
 translate([X-(3.1+18),Y-(3.1+5),1]) roundedcube([10,5,7], false, 1, "z");
 
 }
 
 translate([X-6,6,-1])cylinder(r=1.5,h=15,$fn=32);
 translate([X-6,Y-6,-1])cylinder(r=1.5,h=15,$fn=32);
 
 translate([23,75,5])rotate([90,0,0])cylinder(r=1.5,h=100,$fn=32);
 
 }
 

 
 translate([-10,50,0]) rotate([0,0,180]) {
     union(){
      difference(){
      roundedcube([X,Y,23], false, 1, "z");
      translate([3,3,1])roundedcube([X-6,Y-6,23], false, 1, "z");
      
      translate([3,-2,15])roundedcube([H_X,H_Y,10], false, 1, "z");
      translate([3,Y+5-2.9-H_Y,15]) roundedcube([H_X,H_Y,10], false, 1, "z");
      
      translate([-3,(Y/2)-(H_X/2),15]) roundedcube([H_Y,H_X,10], false, 1, "z");
      
      translate([23,75,20])rotate([90,0,0])cylinder(r=1.5,h=100,$fn=32);
       translate([23,1,20])rotate([90,0,0])cylinder(r=2.5,h=2,$fn=32);   
       translate([23,Y+1,20])rotate([90,0,0])cylinder(r=2.5,h=2,$fn=32);
 
 translate([4.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
 translate([8.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
 translate([12.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
  translate([16.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
  translate([20.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
 translate([24.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
 translate([28.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
  translate([32.5,7,-1]) roundedcube([2,Y-14,10], false, 1, "z");
      
      
      translate([4.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([8.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([12.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([16.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([20.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([24.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([28.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      translate([32.5,-5,3])roundedcube([2,60,9], false, 1, "y");
      
      translate([2,2,13])cube([X-4,Y-4,11]);
  
  
  translate([1,(Y/2)-(H_X/2),0.9]) roundedcube([3.5,H_X,12.1], false, 1, "z");
   translate([X-4.5,(Y/2)-(H_X/2),0.9]) roundedcube([3.5,H_X,12.1], false, 1, "z");
   //  COMMENT HERE TO REMOVE FAST CLAMP
   translate([41.5,5,0])rotate([0,0,90])clip();
  }
  }