mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-01-22 17:30:57 +00:00
c11e8a653d
not super useful tbh, but I was testing linear extruded keycaps and I needed them to be cut off correctly
32 lines
1,013 B
OpenSCAD
32 lines
1,013 B
OpenSCAD
include <libraries/geodesic_sphere.scad>
|
|
|
|
include <dishes/cylindrical.scad>
|
|
include <dishes/old_spherical.scad>
|
|
include <dishes/sideways_cylindrical.scad>
|
|
include <dishes/spherical.scad>
|
|
include <dishes/flat.scad>
|
|
|
|
//geodesic looks much better, but runs very slow for anything above a 2u
|
|
geodesic=false;
|
|
|
|
//dish selector
|
|
module dish(width, height, depth, inverted) {
|
|
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
|
|
} else {
|
|
echo("WARN: $dish_type unsupported");
|
|
}
|
|
}
|