tweak
This commit is contained in:
parent
d4aa75fc14
commit
2972f7f322
|
@ -1,6 +1,6 @@
|
||||||
module choc_stem(depth, slop){
|
module choc_stem(depth, slop){
|
||||||
echo("slop");
|
echo("slop");
|
||||||
echo(slop);
|
echo(slop);
|
||||||
translate([-5.7/2, 0, depth/2]) cube([1.2 - slop/2, 3 - slop/2, depth], center=true);
|
translate([-5.7/2, 0, depth/2]) cube([1.2 - slop/2, 3 - slop, depth], center=true);
|
||||||
translate([5.7/2, 0, depth/2]) cube([1.2 - slop/2, 3 - slop/2, depth], center=true);
|
translate([5.7/2, 0, depth/2]) cube([1.2 - slop/2, 3 - slop, depth], center=true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,11 +43,12 @@ module flared(stem_type, loft, height) {
|
||||||
} else if (stem_type == "choc") {
|
} else if (stem_type == "choc") {
|
||||||
alps_scale = [scale_for_45(height, $choc_stem[0]), scale_for_45(height, $choc_stem[1])];
|
alps_scale = [scale_for_45(height, $choc_stem[0]), scale_for_45(height, $choc_stem[1])];
|
||||||
translate([-5.7/2,0,0]) linear_extrude(height=height, scale = alps_scale){
|
translate([-5.7/2,0,0]) linear_extrude(height=height, scale = alps_scale){
|
||||||
square($choc_stem - [$stem_slop/2, $stem_slop/2], center=true);
|
// TODO make a choc_stem() function so it can build in the slop
|
||||||
|
square($choc_stem - [$stem_slop/2, $stem_slop], center=true);
|
||||||
}
|
}
|
||||||
|
|
||||||
translate([5.7/2,0,0]) linear_extrude(height=height, scale = alps_scale){
|
translate([5.7/2,0,0]) linear_extrude(height=height, scale = alps_scale){
|
||||||
square($choc_stem - [$stem_slop/2, $stem_slop/2], center=true);
|
square($choc_stem - [$stem_slop/2, $stem_slop], center=true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// always render cherry if no stem type. this includes stem_type = false!
|
// always render cherry if no stem type. this includes stem_type = false!
|
||||||
|
|
Loading…
Reference in New Issue