From 9f51b2ed46669207940151593e41fcb0ef957c36 Mon Sep 17 00:00:00 2001 From: wes Date: Tue, 23 Apr 2024 07:07:27 -0400 Subject: [PATCH] improve drainage plate --- planter.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/planter.py b/planter.py index 80ed78b..7c70362 100644 --- a/planter.py +++ b/planter.py @@ -30,7 +30,7 @@ holder_angle_offset = 20 result = ( - result.workplane(offset=-35) + result.workplane(offset=-36) .makePolygon( regularPolygon( nSides=4, @@ -79,11 +79,18 @@ circle_plate = Workplane().cylinder( circle_plate = ( circle_plate.workplane(offset=plate_offset + plate_thickness) .makePolygon( - star(outerRadius=planter_radius / 3, innerRadius=planter_radius / 4.9, n=8), + star(outerRadius=planter_radius / 2, innerRadius=planter_radius / 2.8, n=16), forConstruction=True, ) .vertices() - .cskHole(8, 8, 0.5, depth=None) + .cskHole(7, 7, 0.5, depth=None) + .center(0,0) + .makePolygon( + star(outerRadius=planter_radius / 4.5, innerRadius=planter_radius / 8, n=10), + forConstruction=True, + ) + .vertices() + .cskHole(7, 7, 0.5, depth=None) ) simple = False @@ -133,7 +140,7 @@ assembly.add(result, loc=cq.Location((100, 100, 100))) assembly.add(circle_plate, loc=cq.Location((1100, 1100, 1100))) try: - show_object(result) + show_object(circle_plate) except NameError: pass