dalej robie lolipopa

This commit is contained in:
Rafał Paluch 2025-12-15 22:58:32 +01:00
parent af996a9c4e
commit 158bceb52e
1 changed files with 16 additions and 0 deletions

View File

@ -2,3 +2,19 @@ from build123d import *
szerokosc = 20
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)