Hi,
I apologize if this is just a stupid bug on my part – I am new to FURY - but this is my issue:
I am trying to define multiple lines in a scene as multiple independent actors, but when I do so the renderer adds an extra line that connects one of the ends to the origin. This does not happen if I define
a single actor with multiple lines.
I am running on multiple python versions (3.8,3.9) and on multiple Mac systems (Mac Pro, iMac, MacBook Pro) with the same result.
To reproduce the issue:
Single actor:
scene = window.Scene()
scene.SetBackground((255,255,255))
lines = []
for n in range(5):
lines.append(np.random.rand(2, 3))
colors = [np.random.rand(2, 3)]*5
c = actor.line(lines, colors, opacity= 1.0, lod=False,
fake_tube=True, linewidth=3)
scene.add(c)
window.show(scene)
Multiple actors:
scene = window.Scene()
scene.SetBackground((255,255,255))
lines = []
for n in range(5):
lines.append(np.random.rand(2, 3))
colors = [np.random.rand(2, 3)]*5
line_actor = []
for n in range(5):
line_actor.append(actor.line(lines[n], colors[n], opacity= 1.0, lod=False,
fake_tube=True, linewidth=3))
scene.add(line_actor[n])
window.show(scene)
Thank you very much for any suggestion you can give me!
Best
Marco Buongiorno Nardelli (he/him)
Regents Professor, University of North Texas
External Professor, Santa Fe Institute
CEMI, Center for Experimental Music and Intermedia
iARTA, Initiative for Advanced Research in Technology and the Arts
ArtSciLab, ATEC @ the University of Texas at Dallas
http://www.materialssoundmusic.com