2017-08-14 22:48:01 -04:00
|
|
|
include <libraries/geodesic_sphere.scad>
|
2018-02-04 15:43:17 -05:00
|
|
|
|
|
|
|
include <dishes/cylindrical.scad>
|
|
|
|
include <dishes/old_spherical.scad>
|
|
|
|
include <dishes/sideways_cylindrical.scad>
|
|
|
|
include <dishes/spherical.scad>
|
2020-01-11 22:59:30 -05:00
|
|
|
include <dishes/flat.scad>
|
2020-05-12 22:25:50 -04:00
|
|
|
include <dishes/3d_surface.scad>
|
2018-02-04 15:43:17 -05:00
|
|
|
|
2017-08-14 22:48:01 -04:00
|
|
|
//geodesic looks much better, but runs very slow for anything above a 2u
|
|
|
|
geodesic=false;
|
2017-08-13 03:04:53 -04:00
|
|
|
|
2017-09-25 00:04:34 -04:00
|
|
|
//dish selector
|
2018-02-04 14:33:12 -05:00
|
|
|
module dish(width, height, depth, inverted) {
|
2018-06-04 21:13:09 -04:00
|
|
|
if($dish_type == "cylindrical"){
|
|
|
|
cylindrical_dish(width, height, depth, inverted);
|
|
|
|
}
|
|
|
|
else if ($dish_type == "spherical") {
|
|
|
|
spherical_dish(width, height, depth, inverted);
|
|
|
|
}
|
|
|
|
else if ($dish_type == "sideways cylindrical"){
|
|
|
|
sideways_cylindrical_dish(width, height, depth, inverted);
|
2020-05-12 22:25:50 -04:00
|
|
|
} else if ($dish_type == "old spherical") {
|
2018-06-04 21:13:09 -04:00
|
|
|
old_spherical_dish(width, height, depth, inverted);
|
2020-05-12 22:25:50 -04:00
|
|
|
} else if ($dish_type == "3d_surface") {
|
|
|
|
3d_surface_dish(width, height, depth, inverted);
|
2020-01-11 22:59:30 -05:00
|
|
|
} else if ($dish_type == "flat") {
|
|
|
|
flat_dish(width, height, depth, inverted);
|
2018-06-28 01:27:22 -04:00
|
|
|
} else if ($dish_type == "disable") {
|
|
|
|
// else no dish
|
2018-06-04 21:13:09 -04:00
|
|
|
} else {
|
2018-06-28 01:27:22 -04:00
|
|
|
echo("WARN: $dish_type unsupported");
|
2018-06-04 21:13:09 -04:00
|
|
|
}
|
2017-09-25 00:04:34 -04:00
|
|
|
}
|