Skip to content

Commit c24b5e7

Browse files
committed
Add mandelbulb scenario to demo.py
1 parent dc48fc0 commit c24b5e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

py-palace/demo.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
vol = pc.procedural(md, ed, prog).levels[0]
2929
vol = vol.create_lod([2.0]*nd)
3030

31+
elif args.volume_file == "mandelbulb":
32+
b = 64
33+
s = 40000
34+
nd = 3
35+
ed = pc.TensorEmbeddingData([1.0]*nd)
36+
md = pc.TensorMetaData([s]*nd, [b]*nd)
37+
vol = pc.mandelbulb(md, ed)
38+
3139
else:
3240
try:
3341
vol = pc.open_lod(args.volume_file)

0 commit comments

Comments
 (0)