Adjust screwhole size so heads are flat on surface

This commit is contained in:
Roberto Alsina 2023-04-03 14:16:20 -03:00
parent 38929ade83
commit 8cce323574

View File

@ -5,7 +5,7 @@ from modelo import mounting_pillar_positions, shell_t, width
from utils import hex_vents, punch_hole from utils import hex_vents, punch_hole
# Dimensions for countersunk M4 screws # Dimensions for countersunk M4 screws
m4_top = 8 m4_top = 9
m4_bottom = 4 m4_bottom = 4
@ -45,7 +45,7 @@ def model():
model.faces(">Z") model.faces(">Z")
.workplane(centerOption="CenterOfBoundBox") .workplane(centerOption="CenterOfBoundBox")
.center(-width / 2 + position[0], height / 2 - position[1] - shell_t) .center(-width / 2 + position[0], height / 2 - position[1] - shell_t)
.placeSketch(cq.Sketch().circle(6)) .placeSketch(cq.Sketch().circle(m4_top / 2 + 1.5))
.extrude(-thickness) .extrude(-thickness)
.faces(">Z") .faces(">Z")
.workplane(centerOption="CenterOfBoundBox") .workplane(centerOption="CenterOfBoundBox")