mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-07 11:10:48 -08:00
fixed examples to work with build1223d
This commit is contained in:
parent
70c14fdd0d
commit
f65bc75976
13 changed files with 32 additions and 135 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue