parametrize it.

master
Robert "ar" Gerus 2013-06-07 17:00:35 +02:00
parent 131045760a
commit ea7650f161
1 changed files with 9 additions and 14 deletions

View File

@ -1,16 +1,18 @@
module turntable() {
$fn = 100;
module turntable(height, cut_in_width, tube_radius) {
// tube
difference() {
cylinder(20,5,5,0);
cylinder(height,tube_radius,tube_radius,0);
translate([0,0,-1])
cylinder(30 + 2,4,4,0);
cylinder(height + 2,tube_radius-1,tube_radius-1,0);
}
// cut-in for the tube
intersection() {
cylinder(20,5,5,0);
translate([-11,-11,0])
cube([10,20,30]);
cylinder(height,5,5,0);
translate([cut_in_width,-15,0])
cube([10,20,height]);
}
// holder
@ -25,11 +27,4 @@ module turntable() {
// my own
color("green")
turntable();
// thingiverse
translate([0,50,0])
color("blue")
scale([0.8,0.8,0.8])
import("thingiverse_microwave_turntable.stl");
turntable(50, 2.2, 5.5);