Idealnie pod termomet :)
This commit is contained in:
parent
68366651d8
commit
bd083b62a2
Binary file not shown.
12
uchwyt.py
12
uchwyt.py
|
|
@ -15,10 +15,12 @@ with BuildPart() as termometr:
|
||||||
|
|
||||||
with BuildPart() as uchwyt:
|
with BuildPart() as uchwyt:
|
||||||
with BuildSketch() as s1:
|
with BuildSketch() as s1:
|
||||||
RectangleRounded(dlugosc + 20, szerokosc - 10 , zaokraglenie)
|
RectangleRounded(dlugosc + 10, szerokosc - 10 , zaokraglenie)
|
||||||
extrude(amount=wysokosc / 2 + 5, both=True)
|
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:
|
with BuildPart() as uchwyt_polaczone:
|
||||||
add(uchwyt)
|
add(uchwyt)
|
||||||
|
|
@ -32,7 +34,7 @@ with BuildPart() as sciana:
|
||||||
tylna = uchwyt.part.faces().sort_by(Axis.Z)[-1]
|
tylna = uchwyt.part.faces().sort_by(Axis.Z)[-1]
|
||||||
with BuildSketch(tylna) as s1:
|
with BuildSketch(tylna) as s1:
|
||||||
with Locations((0,vertex_przesuniecia.Y,0)):
|
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)
|
extrude(amount=2)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -42,8 +44,10 @@ with BuildPart() as polaczone:
|
||||||
|
|
||||||
# debug(vertex_przesuniecia)
|
# debug(vertex_przesuniecia)
|
||||||
show_object(polaczone)
|
show_object(polaczone)
|
||||||
|
# debug(termometr)
|
||||||
|
|
||||||
|
|
||||||
|
export_stl(polaczone.part, "./termometr_uchwyt.stl")
|
||||||
|
|
||||||
|
|
||||||
# show_o(polaczone,sciana, tylna)
|
# show_o(polaczone,sciana, tylna)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue