2017-08-15 02:48:01 +00:00
|
|
|
include <libraries/geodesic_sphere.scad>
|
2018-02-04 20:43:17 +00:00
|
|
|
|
|
|
|
include <dishes/cylindrical.scad>
|
|
|
|
include <dishes/old_spherical.scad>
|
|
|
|
include <dishes/sideways_cylindrical.scad>
|
|
|
|
include <dishes/spherical.scad>
|
|
|
|
|
2017-08-15 02:48:01 +00:00
|
|
|
//geodesic looks much better, but runs very slow for anything above a 2u
|
|
|
|
geodesic=false;
|
2017-08-13 07:04:53 +00:00
|
|
|
|
2017-09-25 04:04:34 +00:00
|
|
|
//dish selector
|
2018-02-04 19:33:12 +00:00
|
|
|
module dish(width, height, depth, inverted) {
|
2017-09-25 04:04:34 +00:00
|
|
|
if($dish_type == "cylindrical"){
|
2018-02-04 19:33:12 +00:00
|
|
|
cylindrical_dish(width, height, depth, inverted);
|
2017-09-25 04:04:34 +00:00
|
|
|
}
|
|
|
|
else if ($dish_type == "spherical") {
|
2018-02-04 19:33:12 +00:00
|
|
|
spherical_dish(width, height, depth, inverted);
|
2017-09-25 04:04:34 +00:00
|
|
|
}
|
|
|
|
else if ($dish_type == "sideways cylindrical"){
|
2018-02-04 19:33:12 +00:00
|
|
|
sideways_cylindrical_dish(width, height, depth, inverted);
|
2017-09-25 04:04:34 +00:00
|
|
|
}
|
2017-11-05 22:56:05 +00:00
|
|
|
else if ($dish_type == "old spherical") {
|
2018-02-04 19:33:12 +00:00
|
|
|
old_spherical_dish(width, height, depth, inverted);
|
|
|
|
} else {
|
|
|
|
// else no dish, "no dish" is the value
|
2018-02-04 20:43:17 +00:00
|
|
|
// switchted to actually diffing a cube here due to changes to stems being differenced from the dish instead of the inside
|
2018-02-04 19:33:12 +00:00
|
|
|
translate([0,0,500]) cube([width, height, 1000], center=true);
|
2017-11-05 22:56:05 +00:00
|
|
|
}
|
2017-09-25 04:04:34 +00:00
|
|
|
}
|