Refactor screen_mount script a bit
This commit is contained in:
parent
e4a011f5bd
commit
4279547773
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -106,24 +106,26 @@ def model():
|
||||
)
|
||||
|
||||
|
||||
exporters.export(model(), "screen_mount.stl")
|
||||
if __name__ == "__main__":
|
||||
|
||||
right_side = (
|
||||
model()
|
||||
.faces(">X")
|
||||
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
|
||||
.center(0, height / 2)
|
||||
.split(keepTop=True)
|
||||
)
|
||||
exporters.export(model(), "screen_mount.stl")
|
||||
|
||||
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 = (
|
||||
model()
|
||||
.faces(">X")
|
||||
.workplane(centerOption="CenterOfBoundBox", offset=-width / 2)
|
||||
.center(0, height / 2)
|
||||
.split(keepBottom=True)
|
||||
)
|
||||
exporters.export(right_side, "right_screen_mount.stl")
|
||||
|
||||
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
Loading…
Reference in New Issue
Block a user