Compare commits

..

No commits in common. "a240a31fd2141db51b91bf157f09b42787d66c77" and "c7bd9bc45b89686efb2f20349aa41a0ba281a47b" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View File

@ -5,8 +5,9 @@ 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 = 7.5
m4_bottom = 4 m4_bottom = 4
m4_height = 2.5
lip_thickness = 1.5 lip_thickness = 1.5
@ -44,12 +45,12 @@ def model():
model = ( 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])
.placeSketch(cq.Sketch().circle(6)) .placeSketch(cq.Sketch().circle(6))
.extrude(-thickness) .extrude(-thickness)
.faces(">Z") .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])
.cskHole(m4_bottom, m4_top, 82, depth=None) .cskHole(m4_bottom, m4_top, 82, depth=None)
) )
@ -71,14 +72,6 @@ if __name__ == "__main__":
model = model() model = model()
exporters.export(model, "lid.stl") exporters.export(model, "lid.stl")
exporters.export(
model,
"lid.svg",
opt={
"projectionDir": (0, 0, 1),
},
)
exporters.export( exporters.export(
model.faces(">X").workplane(offset=-width / 2).split(keepTop=True), model.faces(">X").workplane(offset=-width / 2).split(keepTop=True),
"right_side_lid.stl", "right_side_lid.stl",

View File

@ -210,4 +210,3 @@ if __name__ == "__main__":
exporters.export(left_side, "left_side.stl") exporters.export(left_side, "left_side.stl")
exporters.export(model, "model.stl") exporters.export(model, "model.stl")
exporters.export(model, "model.svg", opt={"projectionDir": (0, 0, 1)})