De-emphasizing Workplanes

This commit is contained in:
Roger Maitland 2023-03-07 10:32:37 -05:00
parent caa72c7430
commit af52e032be
19 changed files with 131 additions and 122 deletions

View file

@ -2,8 +2,10 @@ from build123d import *
with BuildPart() as obj:
Box(5, 5, 1)
with Workplanes(*obj.faces().filter_by(Axis.Z)):
Sphere(1.8, mode=Mode.SUBTRACT)
with BuildPart(*obj.faces().filter_by(Axis.Z), mode=Mode.SUBTRACT):
Sphere(1.8)
assert abs(obj.part.volume - 15.083039190168236) < 1e-5
if "show_object" in locals():
show_object(obj.part)