2014-07-01 21:18:27 +07:00
|
|
|
// This file is part of Cyclone PCB Factory: an open-source 3D printable CNC machine for PCB manufacture
|
|
|
|
// http://reprap.org/wiki/Cyclone_PCB_Factory
|
|
|
|
// Original author: Carlosgs (http://carlosgs.es)
|
2014-07-08 23:27:00 +07:00
|
|
|
// License: CC BY-SA 4.0 (Attribution-ShareAlike 4.0 International, http://creativecommons.org/licenses/by-sa/4.0/)
|
2014-07-01 21:18:27 +07:00
|
|
|
// Designed with http://www.openscad.org/
|
|
|
|
|
2014-07-10 16:37:23 +07:00
|
|
|
use <obiscad/obiscad/bcube.scad>
|
2014-07-01 21:18:27 +07:00
|
|
|
|
|
|
|
$render_standard_parts = false;
|
|
|
|
|
|
|
|
module renderStandardPart() {
|
|
|
|
if($render_standard_parts) children();
|
|
|
|
else %children();
|
|
|
|
}
|
|
|
|
|
|
|
|
module standard_paperSheet_A4(t=0.05) {
|
|
|
|
renderStandardPart()
|
|
|
|
translate([0,0,t/2])
|
|
|
|
color("white") cube([297,210,t], center=true);
|
|
|
|
}
|
|
|
|
|
2014-07-10 16:35:25 +07:00
|
|
|
module standard_rod(diam=8, length=10, threaded=true, center=false) {
|
2014-07-01 21:18:27 +07:00
|
|
|
renderStandardPart()
|
|
|
|
if(threaded) {
|
|
|
|
color("black") rotate([-90,0,0]) cylinder(r=diam/2, h=length, center=center);
|
|
|
|
} else {
|
|
|
|
color("grey") rotate([-90,0,0]) cylinder(r=diam/2, h=length, center=center);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module rubberFoot(diam=40, thickness=8) {
|
|
|
|
renderStandardPart()
|
|
|
|
color("black")
|
|
|
|
translate([0,0,-thickness])
|
|
|
|
cylinder(r=diam/2, h=thickness);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module beveledBase(size=[100,200,10], radius=10, res=15) {
|
|
|
|
renderStandardPart()
|
|
|
|
color("brown")
|
|
|
|
translate([0,0,-size.z/2])
|
|
|
|
bcube(size, cr=radius, cres=res);
|
|
|
|
}
|
|
|
|
|