Refactor screen_mount script a bit

This commit is contained in:
Roberto Alsina 2022-11-30 14:29:42 -03:00
parent e4a011f5bd
commit 4279547773
4 changed files with 20271 additions and 28221 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -106,24 +106,26 @@ def model():
) )
exporters.export(model(), "screen_mount.stl") if __name__ == "__main__":
right_side = ( exporters.export(model(), "screen_mount.stl")
model()
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
.center(0, height / 2)
.split(keepTop=True)
)
exporters.export(right_side, "right_screen_mount.stl") right_side = (
model()
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
.center(0, height / 2)
.split(keepTop=True)
)
left_side = ( exporters.export(right_side, "right_screen_mount.stl")
model()
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
.center(0, height / 2)
.split(keepBottom=True)
)
exporters.export(left_side, "left_screen_mount.stl") left_side = (
model()
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
.center(0, height / 2)
.split(keepBottom=True)
)
exporters.export(left_side, "left_screen_mount.stl")

File diff suppressed because it is too large Load Diff