KeyV2/src/stems.scad

33 lines
1.0 KiB
OpenSCAD
Raw Normal View History

2018-02-05 07:43:17 +11:00
include <stems/cherry.scad>
include <stems/rounded_cherry.scad>
include <stems/box_cherry.scad>
2018-02-05 07:43:17 +11:00
include <stems/alps.scad>
include <stems/filled.scad>
include <stems/cherry_stabilizer.scad>
2019-09-08 06:59:29 +10:00
include <stems/choc.scad>
2018-02-05 07:43:17 +11:00
2018-02-05 06:33:12 +11:00
//whole stem, alps or cherry, trimmed to fit
module stem(stem_type, depth, slop, throw){
2018-06-05 11:13:09 +10:00
if (stem_type == "alps") {
alps_stem(depth, slop, throw);
} else if (stem_type == "cherry" || stem_type == "costar_stabilizer") {
cherry_stem(depth, slop, throw);
} else if (stem_type == "rounded_cherry") {
rounded_cherry_stem(depth, slop, throw);
} else if (stem_type == "box_cherry") {
box_cherry_stem(depth, slop, throw);
2018-06-05 11:13:09 +10:00
} else if (stem_type == "filled") {
filled_stem();
} else if (stem_type == "cherry_stabilizer") {
cherry_stabilizer_stem(depth, slop, throw);
2019-09-08 06:59:29 +10:00
} else if (stem_type == "choc") {
2022-02-20 06:40:29 +11:00
choc_stem(depth, slop, throw);
} else if (stem_type == "disable") {
children();
2018-02-05 06:33:12 +11:00
} else {
echo("Warning: unsupported $stem_type: ");
echo(stem_type);
}
}