fixed examples to work with build1223d

This commit is contained in:
Bernhard 2023-03-22 08:45:18 +01:00
parent 70c14fdd0d
commit f65bc75976
13 changed files with 32 additions and 135 deletions

View file

@ -1,6 +1,5 @@
from math import pi, sin
from build123d import *
import build123d.alg_compat as COMPAT
slice_count = 10
@ -10,8 +9,8 @@ for i in range(slice_count + 1):
art += plane * Circle(10 * sin(i * pi / slice_count) + 5)
art = loft(art)
top_bottom = art.faces(GeomType.PLANE)
art = COMPAT.shell(art, openings=top_bottom, amount=0.5)
top_bottom = art.faces().filter_by(GeomType.PLANE)
art = offset(art, openings=top_bottom, amount=0.5)
if "show_object" in locals():
show_object(art, name="art")