hole pattern change

This commit is contained in:
2026-04-15 16:29:12 +02:00
parent b803db7f71
commit 95a11e7600
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -55,6 +55,8 @@ def main() -> None:
if not SCAD_DIR.exists(): if not SCAD_DIR.exists():
raise SystemExit(f"Missing SCAD directory: {SCAD_DIR}") raise SystemExit(f"Missing SCAD directory: {SCAD_DIR}")
print("Dimensions less than 20mm will result in unusable stl files.\n")
base_radius = ask_float("Flower pot radius (base_radius) in mm: ") base_radius = ask_float("Flower pot radius (base_radius) in mm: ")
wall_height = ask_float("Flower pot height (wall_height) in mm: ") wall_height = ask_float("Flower pot height (wall_height) in mm: ")
wall_height_tray = ask_float("Tray height (wall_height_tray) in mm: ") wall_height_tray = ask_float("Tray height (wall_height_tray) in mm: ")
+8 -1
View File
@@ -56,7 +56,14 @@ module holes_pattern() {
union() { union() {
circle(d = hole_d); circle(d = hole_d);
for(r = [base_radius * 0.33, base_radius * 0.66]) { // rings based on the base radius
hole_circles = (base_radius < 35)
? [base_radius * 0.5]
: (base_radius < 55)
? [base_radius * 0.33, base_radius * 0.66]
: [base_radius * 0.25, base_radius * 0.5, base_radius * 0.75];
for(r = hole_circles) {
for(a = [0 : 60 : 359]) { for(a = [0 : 60 : 359]) {
rotate([0, 0, a]) rotate([0, 0, a])
translate([r, 0, 0]) translate([r, 0, 0])