cyclone-pcb-factory/Hardware/CYCLONE_2/libs/standard_parts.scad

46 lines
1.3 KiB
OpenSCAD
Raw Normal View History

// 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)
// License: CC BY-SA 4.0 (Attribution-ShareAlike 4.0 International, http://creativecommons.org/licenses/by-sa/4.0/)
// Designed with http://www.openscad.org/
use <obiscad/obiscad/bcube.scad>
$render_standard_parts = false;
2014-07-10 21:35:59 +07:00
module renderStandardPart(renderPart) {
if(renderPart) children();
else %children();
}
2014-07-10 21:35:59 +07:00
module standard_paperSheet_A4(t=0.05, renderPart=false) {
renderStandardPart(renderPart)
translate([0,0,t/2])
color("white") cube([297,210,t], center=true);
}
2014-07-10 21:35:59 +07:00
module standard_rod(diam=8, length=10, threaded=true, center=false, renderPart=false) {
renderStandardPart(renderPart)
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);
}
}
2014-07-10 21:35:59 +07:00
module rubberFoot(diam=40, thickness=8, renderPart=false) {
renderStandardPart(renderPart)
color("black")
translate([0,0,-thickness])
cylinder(r=diam/2, h=thickness);
}
2014-07-10 21:35:59 +07:00
module beveledBase(size=[100,200,10], radius=10, res=15, renderPart=false) {
renderStandardPart(renderPart)
color("brown")
translate([0,0,-size.z/2])
bcube(size, cr=radius, cres=res);
}