Added hole support for CPU holder

This commit is contained in:
Roberto Alsina 2023-03-15 10:46:36 -03:00
parent 4f1b09ab95
commit d64654f7b1
4 changed files with 85 additions and 74 deletions

View File

@ -124,6 +124,7 @@ def add(
shell_t
):
if bottom_face:
# Vents
for vent in vents:
model = punch_hole2(
@ -150,6 +151,7 @@ def add(
height=-(element["height"] + shell_t),
)
if back_face:
# Holes
for hole in holes:
model = punch_hole2(

View File

@ -200,7 +200,7 @@ def model():
offset_x=cpu_offset_x,
offset_y=cpu_offset_y,
bottom_face="<Z",
back_face=None,
back_face=None, # Not exposing the holes
shell_t=shell_t,
)

View File

@ -60,7 +60,14 @@ vents = [
}
]
holes = [] # TODO
holes = [
# One hole for everything TODO: improve
{
"x": -width / 2,
"y": 1 + pillar_height,
"shape": cq.Sketch().trapezoid(50, 6, 90, mode="a").vertices().fillet(1),
}
]
def add(
@ -76,6 +83,7 @@ def add(
shell_t
):
if bottom_face:
# Vents
for vent in vents:
model = punch_hole2(
@ -103,6 +111,7 @@ def add(
)
# Holes
if back_face:
for hole in holes:
model = punch_hole2(
model=model,