Idealnie pod termomet :)

This commit is contained in:
Rafał Paluch 2025-12-17 19:44:35 +01:00
parent 68366651d8
commit bd083b62a2
2 changed files with 8 additions and 4 deletions

BIN
termometr_uchwyt.stl Normal file

Binary file not shown.

View File

@ -15,10 +15,12 @@ with BuildPart() as termometr:
with BuildPart() as uchwyt:
with BuildSketch() as s1:
RectangleRounded(dlugosc + 20, szerokosc - 10 , zaokraglenie)
extrude(amount=wysokosc / 2 + 5, both=True)
RectangleRounded(dlugosc + 10, szerokosc - 10 , zaokraglenie)
extrude(amount=wysokosc / 2 + 2, both=True)
powiekszony = scale(termometr.part, by=1.05)
# debug(uchwyt, name="uchwyt")
powiekszony = scale(termometr.part, by=1.012)
with BuildPart() as uchwyt_polaczone:
add(uchwyt)
@ -32,7 +34,7 @@ with BuildPart() as sciana:
tylna = uchwyt.part.faces().sort_by(Axis.Z)[-1]
with BuildSketch(tylna) as s1:
with Locations((0,vertex_przesuniecia.Y,0)):
RectangleRounded(dlugosc + 20, 50 , zaokraglenie, align=(Align.CENTER, Align.MAX))
RectangleRounded(dlugosc + 10, 50 , zaokraglenie, align=(Align.CENTER, Align.MAX))
extrude(amount=2)
@ -42,8 +44,10 @@ with BuildPart() as polaczone:
# debug(vertex_przesuniecia)
show_object(polaczone)
# debug(termometr)
export_stl(polaczone.part, "./termometr_uchwyt.stl")
# show_o(polaczone,sciana, tylna)