Trzeba wrócić do kółeczka
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user