dalej robie lolipopa
This commit is contained in:
parent
af996a9c4e
commit
158bceb52e
|
|
@ -2,3 +2,19 @@ from build123d import *
|
||||||
|
|
||||||
szerokosc = 20
|
szerokosc = 20
|
||||||
wysokosc = 15
|
wysokosc = 15
|
||||||
|
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
debug(t2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue