Fix bottom roundness
This commit is contained in:
parent
acd17a490e
commit
c892623e0f
19
planter.scad
19
planter.scad
|
@ -63,11 +63,16 @@ module body(h, fn = 20) {
|
||||||
module bottom() {
|
module bottom() {
|
||||||
full_diameter = (diameter + thickness * 2) + cut_depth * 2;
|
full_diameter = (diameter + thickness * 2) + cut_depth * 2;
|
||||||
|
|
||||||
intersection() {
|
difference() {
|
||||||
translate([0, 0, -full_diameter / 2 * bottom_roundness_percent / 100])
|
intersection() {
|
||||||
body(full_diameter / 2 * bottom_roundness_percent / 100);
|
translate([0, 0, -full_diameter / 2 * bottom_roundness_percent / 100])
|
||||||
|
body(full_diameter / 2 * bottom_roundness_percent / 100);
|
||||||
|
|
||||||
half_sphere(d = full_diameter);
|
half_sphere(d = full_diameter);
|
||||||
|
}
|
||||||
|
|
||||||
|
scale([1, 1, 0.2])
|
||||||
|
half_sphere(d = diameter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,11 +83,7 @@ module planter() {
|
||||||
difference() {
|
difference() {
|
||||||
body(height);
|
body(height);
|
||||||
|
|
||||||
translate([0, 0, -1])
|
cylinder(d = diameter, h = height + 1);
|
||||||
cylinder(d = diameter, h = height + 2);
|
|
||||||
|
|
||||||
scale([1, 1, 0.2])
|
|
||||||
half_sphere(d = diameter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bottom();
|
bottom();
|
||||||
|
|
Loading…
Reference in New Issue