CEB Press v16.09/SCAD Files: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
Line 108: Line 108:


==F4==
==F4==
<nowiki>
F4x=31;  //?why not just 22?
F4y=11;
F4z=0.25;
F4basex=25;
$fn=20;  //render final model at 100
difference(){
translate([-(F4x/2),0,0])
cube([F4x,F4y,F4z]);
translate([-(F4x/2),0,0])
cuts();
translate([(F4x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([0,0,0]) //?xdistance from center?
        cube([3,5.375,F4z]); //?interfaces with what?
    translate([0,5.375,0])
    difference(){
        cube([3,5.125,F4z]);
        translate([3,0,0])
        rotate([0,0,atan(3/5.125)])
        cube([10,10,F4z]);
    }
translate([(F4x/2)-13.6375,F4y-0.5,0])
    mirror([1,0,0])
cube([(F4x/2)-13.6375,0.5,F4z]);
translate([(F4x/2)-13.6375,F4y-0.625,0])
cube([2,0.625,F4z]);
    translate([(F4x/2)-0.8125,F4y-0.5,0])
        cube([0.8125,0.5,F4z]);
    translate([(F4x/2)-1.0625,F4y-0.625,0])
        cube([0.25,0.625,F4z]);
   
    translate([(F4x/2)-9.8125,7.185,0])
        cube([1.125,0.625,F4z]);
   
    translate([(F4x/2)-8.5,2,0])
        cylinder(h = F4z, r = 0.5025); //diameter 1.0?
    translate([(F4x/2)-8.5,6,0])
        cylinder(h = F4z, r = 0.5025);
    translate([(F4x/2)-8.5,9,0])
        cylinder(h = F4z, r = 0.5025);
   
} //end module
</nowiki>


==F5==
==F5==

Revision as of 08:49, 8 January 2017

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
 

F4

F4x=31;  //?why not just 22?
F4y=11;
F4z=0.25;
F4basex=25;
$fn=20;  //render final model at 100


difference(){
translate([-(F4x/2),0,0])
cube([F4x,F4y,F4z]);
translate([-(F4x/2),0,0])
cuts();
translate([(F4x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([0,0,0]) //?xdistance from center? 
        cube([3,5.375,F4z]); //?interfaces with what?

    translate([0,5.375,0])
    difference(){
        cube([3,5.125,F4z]);
        translate([3,0,0])
        rotate([0,0,atan(3/5.125)])
        cube([10,10,F4z]);
    }

translate([(F4x/2)-13.6375,F4y-0.5,0])
    mirror([1,0,0])
cube([(F4x/2)-13.6375,0.5,F4z]);
translate([(F4x/2)-13.6375,F4y-0.625,0])
cube([2,0.625,F4z]);

    translate([(F4x/2)-0.8125,F4y-0.5,0])
        cube([0.8125,0.5,F4z]);
    translate([(F4x/2)-1.0625,F4y-0.625,0])
        cube([0.25,0.625,F4z]);
    
    translate([(F4x/2)-9.8125,7.185,0])
        cube([1.125,0.625,F4z]);
    
    translate([(F4x/2)-8.5,2,0])
        cylinder(h = F4z, r = 0.5025); //diameter 1.0?
    translate([(F4x/2)-8.5,6,0])
        cylinder(h = F4z, r = 0.5025);
    translate([(F4x/2)-8.5,9,0])
        cylinder(h = F4z, r = 0.5025);
    
} //end module
 
 
 

F5

F5x=31.4;
F5y=3.5;
F5z=0.25;
$fn=20;  //render final model at 100

projection(cut = true) //use projection to create 2D DXF files
difference(){
translate([-(F5x/2),0,0])
cube([F5x,F5y,F5z]);
translate([-(F5x/2),0,0])
cuts();
translate([(F5x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([4,F5y-0.625,0])
        cube([1,0.625,F5z]);
    translate([5,F5y-0.5,0])
        cube([1,0.5,F5z]);
    translate([6,F5y-0.625,0])
        cube([6.7,0.625,F5z]);
    translate([12.7,F5y-0.5,0])
        cube([1,0.5,F5z]);
    translate([13.7,F5y-0.625,0])
        cube([1,0.625,F5z]);
    hull(){
    translate([3.5,1.5,0])
        cylinder(h = F5z, r = 0.5);
    translate([4.5,1.5,0])
        cylinder(h = F5z, r = 0.5);
    }
} //end module
 


F6

some errors of symmetry in source dxf drawing. made some assumptions. need to check fit with interfacing parts.

F6x=22.1875;  //?why not just 22?
F6y=8;
F6z=0.25;
$fn=20;  //render final model at 100

projection(cut = true) //use projection to create 2D DXF files
difference(){
translate([-(F6x/2),0,0])
cube([F6x,F6y,F6z]);
translate([-(F6x/2),0,0])
cuts();
translate([(F6x/2),0,0])
mirror([1,0,0])
cuts();
} //end difference
module cuts(){
    translate([1.26,F6y-0.5,0]) //?xdistance from center? 
        cube([1.125,0.5,F6z]); //?interfaces with what?

    translate([(F6x/2)-1.125,F6y-3.22,0])
        cube([2.25,3.22,F6z]);
    translate([F6x/2,F6y-3.22,0])
        cylinder(h = F6z, r = 1.125);
    
    translate([(F6x/2)-8.5,2,0])
        cylinder(h = F6z, r = 0.38); //diameter 0.76?
    translate([(F6x/2)-8.5,6,0])
        cylinder(h = F6z, r = 0.38);
    
} //end module