CEB Press v16.09/SCAD Files

From Open Source Ecology
Jump to navigation Jump to search

work in progress

creating an OpenSCAD replica of v16.09

Frame

F1

F1x=24.2;
F1y=6;
F1z=0.25;
$fn=20;  //render final model at 100

projection(cut = true) //use projection to create 2D DXF files
difference(){
translate([-(F1x/2),0,0])
cube([F1x,F1y,F1z]);
translate([-(F1x/2),0,0])
cuts();
translate([(F1x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
        cube([0.5,0.5,F1z]);
    translate([0.5,0,0])
        cube([0.7875,0.625,F1z]);
    translate([0,F1y-0.25,0])
        cube([0.4,0.25,F1z]);
    translate([2.2875,F1y-0.5,0])
        cube([1.125,0.5,F1z]);
    translate([11.0375,0,0])
        cube([0.8125,0.625,F1z]);
    translate([11.85,0,0])
        cube([0.25,0.5,F1z]);
    translate([3.6,1.5,0])
        cylinder(h = F1z, r = 0.375);   
    translate([3.6,4.5,0])
        cylinder(h = F1z, r = 0.375);
    translate([6.1925,2.465,0])
        cylinder(h = F1z, r = 0.6);     
} //end module
 


F2

F2x=19.5;
F2y=3.5;
F2z=0.25;
$fn=20;  //render final model at 100

projection(cut = true) //use projection to create 2D DXF files
difference(){
translate([-(F2x/2),0,0])
cube([F2x,F2y,F2z]);
translate([-(F2x/2),0,0])
cuts();
translate([(F2x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([1,F2y-0.625,0])
        cube([0.125,0.625,F2z]);
    translate([1.125,F2y-0.5,0])
        cube([8.625,0.5,F2z]);  
} //end module

 


F3

F3x=23.75;
F3y=3.5;
F3z=0.25;
$fn=20;  //render final model at 100

projection(cut = true) //use projection to create 2D DXF files
difference(){
translate([-(F3x/2),0,0])
cube([F3x,F3y,F3z]);
translate([-(F3x/2),0,0])
cuts();
translate([(F3x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([1,0,0])
        cube([1,0.625,F3z]);
    translate([2,0,0])
        cube([1,0.5,F3z]);
    translate([3,0,0])
        cube([5.875,0.625,F3z]);
    translate([8.875,0,0])
        cube([1,0.5,F3z]);
    translate([9.875,0,0])
        cube([1,0.625,F3z]);
    translate([5.375,1.75,0])
        cylinder(h = F3z, r = 0.5);      
} //end module