build123d/examples/multiple_workplanes_algebra.py
2023-03-20 08:57:47 +01:00

8 lines
189 B
Python

from alg123d import *
obj = Box(5, 5, 1)
for plane in [Plane(f) for f in obj.faces().filter_by(Axis.Z)]:
obj -= plane * Sphere(1.8)
if "show_object" in locals():
show_object(obj)