build123d/examples/washer.py
2022-09-15 09:28:05 -04:00

16 lines
389 B
Python

from build123d import *
with BuildPart() as simple_washer:
Cylinder(3, 2)
Hole(1)
with BuildPart() as washer:
with Locations((10, 0)):
Cylinder(3, 2)
with Workplanes(washer.faces().sort_by(SortBy.Z)[-1]):
Hole(1)
if "show_object" in locals():
show_object(simple_washer.part, name="simple_washer")
show_object(washer.part, name="washer")