diff --git a/__pycache__/orange.cpython-312.pyc b/__pycache__/orange.cpython-312.pyc index e99baab..439669a 100644 Binary files a/__pycache__/orange.cpython-312.pyc and b/__pycache__/orange.cpython-312.pyc differ diff --git a/orange.py b/orange.py index 30eae47..05892c7 100644 --- a/orange.py +++ b/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)