diff --git a/termometr_uchwyt.stl b/termometr_uchwyt.stl new file mode 100644 index 0000000..9006714 Binary files /dev/null and b/termometr_uchwyt.stl differ diff --git a/uchwyt.py b/uchwyt.py index 9de426f..b3156e5 100644 --- a/uchwyt.py +++ b/uchwyt.py @@ -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)