adapt examples to newest part_operations

This commit is contained in:
Bernhard 2023-03-20 22:00:35 +01:00
parent 11a5b20f2f
commit 9ac5393c17
10 changed files with 23 additions and 16 deletions

View file

@ -1,5 +1,6 @@
from math import pi, sin
from build123d import *
from build123d.part_operations import *
import alg123d as ad
slice_count = 10
@ -9,7 +10,7 @@ for i in range(slice_count + 1):
plane = Plane(origin=(0, 0, i * 3), z_dir=(0, 0, 1))
art += plane * Circle(10 * sin(i * pi / slice_count) + 5)
art = ad.loft(art)
art = loft(art)
top_bottom = art.faces(GeomType.PLANE)
art = ad.shell(art, openings=top_bottom, amount=0.5)