Skip to content

Commit

Permalink
adjust door lengths from experimental results
Browse files Browse the repository at this point in the history
  • Loading branch information
ojensen5115 committed Mar 17, 2024
1 parent 2148eef commit 98469e1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions boxes/generators/coinbanksafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,17 @@ def render(self):
# locking bar
with self.saved_context():
self.moveTo(0, 4*t)
self.rectangularWall(1.5*t, h, "eeef", move="right")
self.rectangularWall(1.5*t, h, "eeef", move="right only")
self.rectangularWall(1.33*t, h, "eeef", move="right")
self.rectangularWall(1.33*t, h, "eeef", move="right only")
# door
door_clearance = .25 * t # amount to shave off of the door width so it can open
door_clearance = .1 * t # amount to shave off of the door width so it can open
before_hinge = 1.25 * t - door_clearance
after_hinge = y - 2.25 * t - door_clearance
self.moveTo(1, 1+t*4)
self.polyline(
(y - 2.25*t - door_clearance), -90, t, 90, t, 90, t, -90, 1.25*t, 90,
after_hinge, -90, t, 90, t, 90, t, -90, before_hinge, 90,
h, 90,
1.25*t, -90, t, 90, t, 90, t, -90, (y - 2.25*t - door_clearance), 90,
before_hinge, -90, t, 90, t, 90, t, -90, after_hinge, 90,
h, 90)
num_dials = 3
space_under_dials = 6*big_radius
Expand Down

0 comments on commit 98469e1

Please sign in to comment.