Call model only once
This commit is contained in:
parent
539583ac8f
commit
1a8e93775f
@ -132,14 +132,13 @@ def model():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("Exporting")
|
model = model()
|
||||||
exporters.export(model(), "screen_mount.stl")
|
exporters.export(model, "screen_mount.stl")
|
||||||
|
|
||||||
offset_width = -width / 2
|
offset_width = -width / 2
|
||||||
|
|
||||||
right_side = (
|
right_side = (
|
||||||
model()
|
model.faces(">X")
|
||||||
.faces(">X")
|
|
||||||
.workplane(centerOption="CenterOfBoundBox", offset=offset_width)
|
.workplane(centerOption="CenterOfBoundBox", offset=offset_width)
|
||||||
.split(keepTop=True)
|
.split(keepTop=True)
|
||||||
)
|
)
|
||||||
@ -147,8 +146,7 @@ if __name__ == "__main__":
|
|||||||
exporters.export(right_side, "right_screen_mount.stl")
|
exporters.export(right_side, "right_screen_mount.stl")
|
||||||
|
|
||||||
left_side = (
|
left_side = (
|
||||||
model()
|
model.faces(">X")
|
||||||
.faces(">X")
|
|
||||||
.workplane(centerOption="CenterOfBoundBox", offset=offset_width)
|
.workplane(centerOption="CenterOfBoundBox", offset=offset_width)
|
||||||
.split(keepBottom=True)
|
.split(keepBottom=True)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user