Reworked keyboard code so it's more correct and general

This commit is contained in:
Roberto Alsina 2023-03-28 10:36:58 -03:00
parent bf302deab1
commit f5bf232f0e
3 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -142,10 +142,10 @@ def model():
width=width, width=width,
height=height, height=height,
thickness=thickness, thickness=thickness,
bottom_face=">Z", # Yes >Z bottom_face="<Z",
back_face=None, back_face=None,
offset_x=0, offset_x=0,
offset_y=height - keyboard.kbd_height, offset_y=kbd_height,
shell_t=shell_t, shell_t=shell_t,
) )

View File

@ -44,7 +44,6 @@ def add(
): ):
# USB Hub extrusions # USB Hub extrusions
print(offset_x)
if bottom_face: if bottom_face:
for element in elements: for element in elements:
model = extrude_shape( model = extrude_shape(