Adjust position of right side pillars and audio board
This commit is contained in:
parent
517bb93d8d
commit
67de0b13b2
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 951 KiB After Width: | Height: | Size: 786 KiB |
@ -23,6 +23,7 @@ kbd_width = 305
|
||||
# Size of the whole object
|
||||
width = kbd_width + 2 * shell_t
|
||||
height = 159
|
||||
print(f"Width:{width} Height:{height}")
|
||||
thickness = 30 + shell_t # 30 inside
|
||||
|
||||
# Insert Positions
|
||||
@ -34,11 +35,11 @@ ti_depth = 6.25
|
||||
# Measured from top-left corner OUTSIDE
|
||||
mounting_pillar_positions = [
|
||||
(6, 6),
|
||||
(6, 36),
|
||||
(6, 43),
|
||||
(120, 6),
|
||||
(170, 6),
|
||||
(width - 6, 6),
|
||||
(width - 6, 30),
|
||||
(width - 6, 43),
|
||||
(120, 48),
|
||||
(170, 48),
|
||||
]
|
||||
@ -94,7 +95,7 @@ def model():
|
||||
height=height,
|
||||
thickness=thickness,
|
||||
offset_x=width - audio_plug.item_w,
|
||||
offset_y=40,
|
||||
offset_y=19,
|
||||
bottom_face="<Z",
|
||||
back_face=">X",
|
||||
shell_t=shell_t,
|
||||
@ -205,35 +206,36 @@ if __name__ == "__main__":
|
||||
)
|
||||
exporters.export(left_side, "left_side.stl")
|
||||
|
||||
draft = Draft(decimal_precision=1)
|
||||
dimensions = []
|
||||
dimensions.append(
|
||||
draft.extension_line(
|
||||
object_edge=[
|
||||
cq.Vertex.makeVertex(-width / 2, -height / 2, 0),
|
||||
cq.Vertex.makeVertex(width / 2, -height / 2, 0),
|
||||
],
|
||||
offset=10.0,
|
||||
)
|
||||
)
|
||||
dimensions.append(
|
||||
draft.extension_line(
|
||||
object_edge=[
|
||||
cq.Vertex.makeVertex(width / 2, -height / 2, 0),
|
||||
cq.Vertex.makeVertex(width / 2, height / 2, 0),
|
||||
],
|
||||
offset=10.0,
|
||||
)
|
||||
)
|
||||
# draft = Draft(decimal_precision=1)
|
||||
# dimensions = []
|
||||
# dimensions.append(
|
||||
# draft.extension_line(
|
||||
# object_edge=[
|
||||
# cq.Vertex.makeVertex(-width / 2, -height / 2, 0),
|
||||
# cq.Vertex.makeVertex(width / 2, -height / 2, 0),
|
||||
# ],
|
||||
# offset=10.0,
|
||||
# )
|
||||
# )
|
||||
# dimensions.append(
|
||||
# draft.extension_line(
|
||||
# object_edge=[
|
||||
# cq.Vertex.makeVertex(width / 2, -height / 2, 0),
|
||||
# cq.Vertex.makeVertex(width / 2, height / 2, 0),
|
||||
# ],
|
||||
# offset=10.0,
|
||||
# )
|
||||
# )
|
||||
|
||||
exporters.export(model, "model.stl")
|
||||
|
||||
for d in dimensions[1:]:
|
||||
dimensions[0].add(d.toCompound())
|
||||
dimensions[0].add(model)
|
||||
# for d in dimensions[1:]:
|
||||
# dimensions[0].add(d.toCompound())
|
||||
# dimensions[0].add(model)
|
||||
|
||||
exporters.export(
|
||||
dimensions[0].toCompound(),
|
||||
# model[0].toCompound(),
|
||||
model,
|
||||
"model.svg",
|
||||
opt={
|
||||
"projectionDir": (0, 0, 1),
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user