Trzeba wrócić do kółeczka
This commit is contained in:
parent
158bceb52e
commit
3dfd27383f
39
post_cap.py
39
post_cap.py
|
|
@ -1,31 +1,20 @@
|
|||
"""
|
||||
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 sk1:
|
||||
test = Rectangle(49, 48 - 8, align=(Align.CENTER, Align.MIN))
|
||||
test2 = Rectangle(9, 48, align=(Align.CENTER, Align.MIN))
|
||||
# with Locations((9 / 2, 40)):
|
||||
# Ellipse(20, 8)
|
||||
test3 = split(bisect_by=Plane.YZ)
|
||||
with BuildSketch(Plane.XZ) as s:
|
||||
Rectangle(49, 48 - 8, align=(Align.CENTER, Align.MIN)) # wysokość 40
|
||||
with Locations((4.5, 40)):
|
||||
Ellipse(20 , 8)
|
||||
split(bisect_by=Plane.YZ)
|
||||
revolve(axis=Axis.Z)
|
||||
|
||||
# with BuildSketch(Plane.YZ.offset(-15)) as xc1:
|
||||
# with Locations((0, 40 / 2 - 17)):
|
||||
# test4 = Ellipse(10 / 2, 4 / 2)
|
||||
# with BuildLine(Plane.XZ) as l1:
|
||||
# test5 = CenterArc((-15, 40 / 2), 17, 90, 180)
|
||||
# sweep(path=l1)
|
||||
|
||||
show_object(p)
|
||||
|
||||
debug(test)
|
||||
debug(test2)
|
||||
debug(test3)
|
||||
# export_step(p.part, "/home/pali112/Build123d/debug.step")
|
||||
# debug(test1)
|
||||
# debug(test2)
|
||||
# debug(test3)
|
||||
# debug(test4, name="ELL")
|
||||
# debug(test5, name="CA")
|
||||
# show_object(p, name="calosc")
|
||||
# debug(xc1)
|
||||
debug(s.sketch)
|
||||
|
|
|
|||
|
|
@ -1,20 +1,15 @@
|
|||
from build123d import *
|
||||
|
||||
szerokosc = 20
|
||||
wysokosc = 15
|
||||
wysokosc = 30
|
||||
|
||||
# dlugosc_nozki = 15
|
||||
# srednica_nozki = 4
|
||||
|
||||
with BuildPart() as p:
|
||||
with BuildSketch(Plane.XZ) as s:
|
||||
# 1. Rysujemy profil (ćwiartka elipsy)
|
||||
# x_radius=10 (promień podstawy), y_radius=15 (wysokość)
|
||||
arc = EllipticalCenterArc(center=(0, 0), x_radius=szerokosc / 2, y_radius=wysokosc, end_angle=90)
|
||||
|
||||
# 2. Pogrubiamy ściankę do środka (zachowując wymiar zewnętrzny)
|
||||
t = offset(arc, amount=-1)
|
||||
|
||||
# 3. Obracamy profil wokół osi pionowej Z, tworząc kopułę
|
||||
t2 = revolve(t, axis=Axis.Z)
|
||||
with BuildSketch() as s:
|
||||
Rectangle(30, 20)
|
||||
|
||||
|
||||
|
||||
|
||||
debug(t2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue