KeyV2/src/dishes.scad

33 lines
1,013 B
OpenSCAD
Raw Normal View History

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>
include <dishes/flat.scad>
2018-02-04 20:43:17 +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
//dish selector
2018-02-04 19:33:12 +00:00
module dish(width, height, depth, inverted) {
2018-06-05 01:13:09 +00: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);
}
else if ($dish_type == "old spherical") {
old_spherical_dish(width, height, depth, inverted);
} else if ($dish_type == "flat") {
flat_dish(width, height, depth, inverted);
} else if ($dish_type == "disable") {
// else no dish
2018-06-05 01:13:09 +00:00
} else {
echo("WARN: $dish_type unsupported");
2018-06-05 01:13:09 +00:00
}
}