From e9423dbcf091a209c6fdbdc90caf56cea807228d Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Thu, 5 Sep 2024 15:09:17 +0200 Subject: [PATCH] Fix more constant names --- src/main.py | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/main.py b/src/main.py index 7061158..ba7f12a 100644 --- a/src/main.py +++ b/src/main.py @@ -1058,11 +1058,10 @@ def screw_insert_all_shapes(shape): ) -trrs_holder_size = [6.0, 11.0, 7.0] -trrs_hole_size = [2.6, 10.0] -trrs_holder_thickness = 2.5 - -trrs_front_thickness = 1.8 +TRRS_HOLDER_SIZE = [6.0, 11.0, 7.0] +TRRS_HOLE_SIZE = [2.6, 10.0] +TRRS_HOLDER_THICKNESS = 2.5 +TRRS_FRONT_THICKNESS = 1.8 def trrs_key_holder_position(): @@ -1072,27 +1071,27 @@ def trrs_key_holder_position(): def trrs_holder(): shape = cube( - trrs_holder_size[0] + trrs_holder_thickness, - trrs_holder_size[1] + trrs_front_thickness, - trrs_holder_size[2] + trrs_holder_thickness * 2, + TRRS_HOLDER_SIZE[0] + TRRS_HOLDER_THICKNESS, + TRRS_HOLDER_SIZE[1] + TRRS_FRONT_THICKNESS, + TRRS_HOLDER_SIZE[2] + TRRS_HOLDER_THICKNESS * 2, ) placed_shape = translate( - -trrs_holder_size[0] / 2, - -trrs_holder_size[1], - -(trrs_holder_size[2] / 2 + trrs_holder_thickness), + -TRRS_HOLDER_SIZE[0] / 2, + -TRRS_HOLDER_SIZE[1], + -(TRRS_HOLDER_SIZE[2] / 2 + TRRS_HOLDER_THICKNESS), )(shape) return translate(*trrs_key_holder_position())(placed_shape) def trrs_holder_hole(): - rect_hole = cube(*trrs_holder_size) + rect_hole = cube(*TRRS_HOLDER_SIZE) rect_hole = translate( - -trrs_holder_size[0] / 2, -trrs_holder_size[1], -trrs_holder_size[2] / 2, + -TRRS_HOLDER_SIZE[0] / 2, -TRRS_HOLDER_SIZE[1], -TRRS_HOLDER_SIZE[2] / 2, )(rect_hole) - cylinder_hole = cylinder(*trrs_hole_size, segments=30) + cylinder_hole = cylinder(*TRRS_HOLE_SIZE, segments=30) cylinder_hole = rotate_x(90)(cylinder_hole) cylinder_hole = translate(0, 5, 0)(cylinder_hole)