Działamy dalej

This commit is contained in:
pali112 committed 2025-12-13 20:51:09 +01:00
1 parent fed8432269
commit 03ae39fda7
2 files changed
+28 -18

No files matched your search

+12 -6
View File
@@ -1,15 +1,21 @@
from build123d import *
# Szerokość koła: 40 mm
# Średnica zewnętrzna: 100 mm (czyli promień zewnętrzny 50 mm)
# Otwór na wał: 20 mm (czyli promień wewnętrzny 10 mm)
# Rowek na pasek: Wcięcie w kształcie trapezu (lub trójkąta) na środku zewnętrznej krawędzi.
with BuildPart() as p:
with BuildSketch(Plane.XZ) as s:
with Locations((20, 0)):
test = Rectangle(40, 40)
test2 = split(bisect_by=Plane.YZ)
with Locations((30, 0)):
t = Rectangle(40, 40)
with Locations((50 - 10 / 2, 0)):
t2 = Trapezoid(12, 10, 80, rotation=90, mode=Mode.SUBTRACT)
revolve(axis=Axis.Z)
debug(test, name="Rectangle")
debug(test2, name="split")
# debug(t)
# debug(t2, name="trapez")
show_object(p, name="calosc")
# debug(t)
export_step(p.part, "/home/pali112/Build123d/debug.step")
# export_step(p.part, "/home/pali112/Build123d/debug.step")