@@ -76,7 +76,7 @@ def rad2deg(rad: float) -> float:
7676####################################################
7777
7878
79- debug_exports = False
79+ debug_exports = False
8080debug_trace = False
8181
8282def debugprint (info ):
@@ -2486,15 +2486,19 @@ def front_wall(skeleton=False):
24862486 3 , lastrow , 0 , - 1 , web_post_bl (), 3 , lastrow , 0.5 , - 1 , web_post_br ()
24872487 )])
24882488 shape = union ([shape ,key_wall_brace (
2489- 3 , lastrow , 0.5 , - 1 , web_post_br (), 4 , cornerrow , 1 , - 1 , web_post_bl ()
2489+ 3 , lastrow , 0.5 , - 1 , web_post_br (), 4 , cornerrow , .5 , - 1 , web_post_bl ()
24902490 )])
2491- for i in range (ncols - 4 ):
2492- x = i + 4
2491+ shape = union ([shape ,key_wall_brace (
2492+ 4 , cornerrow , .5 , - 1 , web_post_bl (), 4 , cornerrow , 0 , - 1 , web_post_br ()
2493+ )])
2494+
2495+ for i in range (ncols - 5 ):
2496+ x = i + 5
2497+
24932498 shape = union ([shape ,key_wall_brace (
24942499 x , cornerrow , 0 , - 1 , web_post_bl (), x , cornerrow , 0 , - 1 , web_post_br ()
24952500 )])
2496- for i in range (ncols - 5 ):
2497- x = i + 5
2501+
24982502 shape = union ([shape , key_wall_brace (
24992503 x , cornerrow , 0 , - 1 , web_post_bl (), x - 1 , cornerrow , 0 , - 1 , web_post_br ()
25002504 )])
@@ -4013,12 +4017,21 @@ def model_side(side="right"):
40134017
40144018 has_trackball = False
40154019 if ('TRACKBALL' in thumb_style ) and (side == ball_side or ball_side == 'both' ):
4020+ print ("Has Trackball" )
40164021 tbprecut , tb , tbcutout , sensor , ball = generate_trackball_in_cluster ()
40174022 has_trackball = True
40184023 thumb_section = difference (thumb_section , [tbprecut ])
4024+ if debug_exports :
4025+ export_file (shape = thumb_section , fname = path .join (r".." , "things" , r"debug_thumb_test_1_shape" .format (side )))
40194026 thumb_section = union ([thumb_section , tb ])
4027+ if debug_exports :
4028+ export_file (shape = thumb_section , fname = path .join (r".." , "things" , r"debug_thumb_test_2_shape" .format (side )))
40204029 thumb_section = difference (thumb_section , [tbcutout ])
4030+ if debug_exports :
4031+ export_file (shape = thumb_section , fname = path .join (r".." , "things" , r"debug_thumb_test_3_shape" .format (side )))
40214032 thumb_section = union ([thumb_section , sensor ])
4033+ if debug_exports :
4034+ export_file (shape = thumb_section , fname = path .join (r".." , "things" , r"debug_thumb_test_4_shape" .format (side )))
40224035
40234036 if plate_pcb_clear :
40244037 thumb_section = difference (thumb_section , [thumb_pcb_plate_cutouts (side = side )])
@@ -4027,8 +4040,8 @@ def model_side(side="right"):
40274040 block = translate (block , (0 , 0 , - 20 ))
40284041 main_shape = difference (main_shape , [block ])
40294042 thumb_section = difference (thumb_section , [block ])
4030-
4031-
4043+ if debug_exports :
4044+ export_file ( shape = thumb_section , fname = path . join ( r".." , "things" , r"debug_thumb_test_5_shape" . format ( side )))
40324045
40334046 if separable_thumb :
40344047 thumb_section = difference (thumb_section , [main_shape ])
@@ -4038,6 +4051,8 @@ def model_side(side="right"):
40384051 thumb_section = add ([thumb_section , ball ])
40394052 else :
40404053 main_shape = union ([main_shape , thumb_section ])
4054+ if debug_exports :
4055+ export_file (shape = main_shape , fname = path .join (r".." , "things" , r"debug_thumb_test_6_shape" .format (side )))
40414056 if show_caps :
40424057 main_shape = add ([main_shape , thumbcaps (side = side )])
40434058 if has_trackball :
0 commit comments