KeyV2/src/stems.scad

21 lines
592 B
OpenSCAD
Raw Normal View History

2018-02-05 07:43:17 +11:00
include <stems/cherry.scad>
include <stems/rounded_cherry.scad>
include <stems/alps.scad>
include <stems/filled.scad>
2018-02-05 06:33:12 +11:00
//whole stem, alps or cherry, trimmed to fit
2018-06-25 10:26:19 +10:00
module stem(stem_type, depth, has_brim, slop){
2018-06-05 11:13:09 +10:00
if (stem_type == "alps") {
2018-06-25 10:26:19 +10:00
alps_stem(depth, has_brim, slop);
} else if (stem_type == "rounded_cherry") {
2018-06-25 10:26:19 +10:00
rounded_cherry_stem(depth, has_brim, slop);
2018-06-05 11:13:09 +10:00
} else if (stem_type == "cherry") {
2018-06-25 10:26:19 +10:00
cherry_stem(depth, has_brim, slop);
2018-06-05 11:13:09 +10:00
} else if (stem_type == "filled") {
filled_stem();
2018-02-05 06:33:12 +11:00
} else {
echo("Warning: unsupported $stem_type");
}
}