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

From Open Source Ecology
Jump to navigation Jump to search
(Created page with "'''work in progress''' creating an OpenSCAD replica of v16.09 =Frame= ==F1== <nowiki> F1x=24.2; F1y=6; F1z=0.25; $fn=20; //render final model at 100 projection(cut = tr...")
 
Line 42: Line 42:
         cylinder(h = F1z, r = 0.6);     
         cylinder(h = F1z, r = 0.6);     
} //end module
} //end module
</nowiki>
==F2==
<nowiki>
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
  </nowiki>
  </nowiki>

Revision as of 03:41, 6 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