37 lines
756 B
Python
37 lines
756 B
Python
from build123d import *
|
|
from ocp_vscode import *
|
|
|
|
|
|
dlugosc = 44
|
|
szerokosc = 44
|
|
wysokosc = 12.2
|
|
zaokraglenie = 8
|
|
|
|
with BuildPart() as termometr:
|
|
with BuildSketch() as s1:
|
|
RectangleRounded(dlugosc, szerokosc, 8)
|
|
extrude(amount=wysokosc, both=True)
|
|
|
|
|
|
with BuildPart() as uchwyt:
|
|
with BuildSketch() as s1:
|
|
RectangleRounded(dlugosc + 20, szerokosc - 10 , zaokraglenie)
|
|
extrude(amount=wysokosc + 5, both=True)
|
|
|
|
powiekszony = scale(termometr.part, by=1.05)
|
|
|
|
with BuildPart() as polaczone:
|
|
add(uchwyt)
|
|
with Locations((0,-15,0)):
|
|
add(powiekszony, mode=Mode.SUBTRACT)
|
|
with Locations((0,-7,0)):
|
|
Box(40,34.4,70, mode=Mode.SUBTRACT)
|
|
with Locations((0,-10,0)):
|
|
add(termometr)
|
|
|
|
|
|
|
|
show(polaczone)
|
|
|
|
|