mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
De-emphasizing Workplanes
This commit is contained in:
parent
caa72c7430
commit
af52e032be
19 changed files with 131 additions and 122 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue