41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
"""
|
|
Too Tall Toby Party Pack 01-02 Post Cap
|
|
"""
|
|
|
|
from build123d import *
|
|
|
|
densa = 7800 / 1e6 # carbon steel density g/mm^3
|
|
densb = 2700 / 1e6 # aluminum alloy
|
|
densc = 1020 / 1e6 # ABS
|
|
|
|
with BuildPart() as p:
|
|
with BuildSketch(Plane.XZ) as s:
|
|
Rectangle(49, 48 - 8, align=(Align.CENTER, Align.MIN)) # wysokość 40
|
|
with Locations((0, 40)):
|
|
Rectangle(9, 8, align=(Align.CENTER, Align.MIN))
|
|
with Locations((4.5, 40)):
|
|
Ellipse(20 , 8)
|
|
split(bisect_by=Plane.YZ)
|
|
revolve(axis=Axis.Z)
|
|
with BuildLine(Plane.XZ) as l1:
|
|
ucho = CenterArc(center=(-15, 20), radius=17, start_angle=90, arc_size=180)
|
|
punkt1 = ucho @ (0)
|
|
# print(punkt1)
|
|
with BuildSketch(Plane.ZY.offset(15)) as s2:
|
|
with Locations((punkt1.Z, 0)):
|
|
Ellipse(4 / 2, 10 / 2)
|
|
sweep(path=ucho)
|
|
with BuildSketch(Plane.XZ) as s3:
|
|
Trapezoid(18, 6, 80, 88, align=Align.MIN)
|
|
t3 = revolve(axis=Axis.Z, mode=Mode.PRIVATE)
|
|
|
|
# export_step(p.part, "/home/pali112/Build123d/debug.step")
|
|
|
|
# debug(punkt1, name="punkt1")
|
|
debug(t3, name="t3")
|
|
debug(s3.sketch, name="s3")
|
|
debug(s2.sketch, name="s2")
|
|
debug(l1.line, name="ucho")
|
|
show_object(p)
|
|
debug(s.sketch, name="kubek")
|