21 lines
565 B
Python
21 lines
565 B
Python
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)
|