KeyV2/src/stems.scad

21 lines
551 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
module stem(stem_type, depth, has_brim){
if (stem_type == "alps") {
alps_stem(depth, has_brim);
} else if (stem_type == "cherry_rounded") {
2018-02-05 07:43:17 +11:00
rounded_cherry_stem(depth, has_brim);
2018-02-05 06:33:12 +11:00
} else if (stem_type == "cherry") {
cherry_stem(depth, has_brim);
} else if (stem_type == "filled") {
filled_stem();
2018-02-05 06:33:12 +11:00
} else {
echo("Warning: unsupported $stem_type");
}
}