mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
added alg123d only where needed
This commit is contained in:
parent
e9964e465b
commit
aaae6f5a08
15 changed files with 99 additions and 80 deletions
|
|
@ -1,17 +1,17 @@
|
|||
from math import pi, sin
|
||||
from alg123d import *
|
||||
from build123d import *
|
||||
import alg123d as ad
|
||||
|
||||
slice_count = 10
|
||||
|
||||
art = AlgCompound()
|
||||
art = Sketch()
|
||||
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 = loft(art)
|
||||
art = ad.loft(art)
|
||||
top_bottom = art.faces(GeomType.PLANE)
|
||||
art = shell(art, openings=top_bottom, amount=0.5)
|
||||
art = ad.shell(art, openings=top_bottom, amount=0.5)
|
||||
|
||||
reset_show()
|
||||
if "show_object" in locals():
|
||||
show_object(art, name="art")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue