Compare commits
2 Commits
6d527cbbb8
...
cc1ff47e53
Author | SHA1 | Date |
---|---|---|
Roberto Alsina | cc1ff47e53 | |
Roberto Alsina | bd4b8d4cc5 |
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"python.formatting.provider": "black",
|
||||
"emeraldwalk.runonsave": {
|
||||
"commands": [
|
||||
{
|
||||
"match": ".py",
|
||||
"isAsync": true,
|
||||
"cmd": "make"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
STL_FILES = base.stl hinged_lid.stl simple_lid.stl tandy_lid.stl
|
||||
|
||||
all: $(STL_FILES)
|
||||
|
||||
%.stl: %.py dimensions.py
|
||||
python $<
|
|
@ -147,7 +147,7 @@ if __name__ == "__main__":
|
|||
.cutBlind(100)
|
||||
)
|
||||
|
||||
exporters.export(right_side, "right_side.stl")
|
||||
exporters.export(right_side, "base_right.stl")
|
||||
|
||||
right_cutout = cq.Sketch().polygon(
|
||||
[
|
||||
|
@ -168,7 +168,7 @@ if __name__ == "__main__":
|
|||
.placeSketch(right_cutout)
|
||||
.cutBlind(100)
|
||||
)
|
||||
exporters.export(left_side, "left_side.stl")
|
||||
exporters.export(left_side, "base_left.stl")
|
||||
|
||||
# draft = Draft(decimal_precision=1)
|
||||
# dimensions = []
|
||||
|
@ -191,7 +191,7 @@ if __name__ == "__main__":
|
|||
# )
|
||||
# )
|
||||
|
||||
exporters.export(model, "model.stl")
|
||||
exporters.export(model, "base.stl")
|
||||
|
||||
# for d in dimensions[1:]:
|
||||
# dimensions[0].add(d.toCompound())
|
||||
|
@ -200,7 +200,7 @@ if __name__ == "__main__":
|
|||
exporters.export(
|
||||
# model[0].toCompound(),
|
||||
model,
|
||||
"model.svg",
|
||||
"base.svg",
|
||||
opt={
|
||||
"projectionDir": (0, 0, 1),
|
||||
"strokeWidth": 0.3,
|
Before Width: | Height: | Size: 786 KiB After Width: | Height: | Size: 786 KiB |
|
@ -385,7 +385,7 @@ if __name__ == "__main__":
|
|||
|
||||
exporters.export(model, "hinged_lid.stl")
|
||||
|
||||
exporters.export(front_bezel(), "front_bezel.stl")
|
||||
exporters.export(front_bezel(), "hinged_lid_bezel.stl")
|
||||
|
||||
exporters.export(
|
||||
model,
|
||||
|
@ -404,7 +404,7 @@ if __name__ == "__main__":
|
|||
.split(keepTop=True)
|
||||
)
|
||||
|
||||
exporters.export(right_side, "right_hinged_lid.stl")
|
||||
exporters.export(right_side, "hinged_lid_right.stl")
|
||||
|
||||
left_side = (
|
||||
model.faces(">X")
|
||||
|
@ -412,4 +412,4 @@ if __name__ == "__main__":
|
|||
.split(keepBottom=True)
|
||||
)
|
||||
|
||||
exporters.export(left_side, "left_hinged_lid.stl")
|
||||
exporters.export(left_side, "hinged_lid_left.stl")
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -85,10 +85,10 @@ def decorative_cover():
|
|||
|
||||
if __name__ == "__main__":
|
||||
model = model()
|
||||
exporters.export(model, "lid.stl")
|
||||
exporters.export(model, "simple_lid.stl")
|
||||
|
||||
cover = decorative_cover()
|
||||
exporters.export(cover, "lid_cover.stl")
|
||||
exporters.export(cover, "simple_lid_cover.stl")
|
||||
|
||||
exporters.export(
|
||||
model,
|
||||
|
@ -100,9 +100,9 @@ if __name__ == "__main__":
|
|||
|
||||
exporters.export(
|
||||
model.faces(">X").workplane(offset=-dim.width / 2).split(keepTop=True),
|
||||
"right_side_lid.stl",
|
||||
"simple_lid_right.stl",
|
||||
)
|
||||
exporters.export(
|
||||
model.faces(">X").workplane(offset=-dim.width / 2).split(keepBottom=True),
|
||||
"left_side_lid.stl",
|
||||
"simple_lid_left.stl",
|
||||
)
|
|
@ -111,7 +111,7 @@ def model():
|
|||
|
||||
if __name__ == "__main__":
|
||||
model = model()
|
||||
exporters.export(model, "screen_mount.stl")
|
||||
exporters.export(model, "tandy_lid.stl")
|
||||
|
||||
offset_width = -dim.width / 2
|
||||
|
||||
|
@ -121,7 +121,7 @@ if __name__ == "__main__":
|
|||
.split(keepTop=True)
|
||||
)
|
||||
|
||||
exporters.export(right_side, "right_screen_mount.stl")
|
||||
exporters.export(right_side, "tandy_lid_right.stl")
|
||||
|
||||
left_side = (
|
||||
model.faces(">X")
|
||||
|
@ -129,4 +129,4 @@ if __name__ == "__main__":
|
|||
.split(keepBottom=True)
|
||||
)
|
||||
|
||||
exporters.export(left_side, "left_screen_mount.stl")
|
||||
exporters.export(left_side, "tandy_lid_left.stl")
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue