Dalsza praca nad zamkiem
This commit is contained in:
parent
65ed788db0
commit
31ff6fd815
Binary file not shown.
19
orange.py
19
orange.py
|
|
@ -77,6 +77,12 @@ pods_gr = 1.7
|
|||
offset_podstawy = 1.410
|
||||
przesuniecie_uchwyciku = 17.080
|
||||
|
||||
# parametry zamka trójkąta
|
||||
|
||||
t_dlugosc = 2.3
|
||||
t_ramie = 1.6
|
||||
t_cala_dlugosc = 16
|
||||
|
||||
with BuildPart() as box:
|
||||
with BuildSketch() as s1:
|
||||
Rectangle(dlugosc, szerokosc)
|
||||
|
|
@ -134,10 +140,13 @@ with BuildPart() as box:
|
|||
Rectangle(pods_dl, pods_sz)
|
||||
extrude(amount=pods_gr)
|
||||
mirror(about=Plane.YZ)
|
||||
|
||||
with BuildSketch(Plane.ZX) as zamek:
|
||||
test_zamek = Rectangle(20, 20)
|
||||
# e1 = extrude(amount=40)
|
||||
gora_left_edge = box.faces().sort_by(Axis.Z)[-1].edges().filter_by(Axis.Y).sort_by(Axis.X)[1].vertex()
|
||||
# ZAMEK ==============================================================
|
||||
with BuildPart() as zamek:
|
||||
with BuildSketch(Plane.ZX) as z1:
|
||||
with Locations((gora_left_edge.Z, gora_left_edge.X, 0)):
|
||||
Triangle(a=t_dlugosc, b=t_ramie, c=t_ramie, rotation=(-45))
|
||||
extrude(amount=t_cala_dlugosc / 2, both=True)
|
||||
|
||||
|
||||
show(box, zamek)
|
||||
show(box, zamek, orange)
|
||||
|
|
|
|||
Loading…
Reference in New Issue