problem with line actors
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) [A picture containing antenna Description automatically generated] 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) [A picture containing antenna Description automatically generated] 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://ermes.unt.edu http://www.materialssoundmusic.com<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.materialssoundmusic.com%2F&data=04%7C01%7CMarco.BuongiornoNardelli%40unt.edu%7Cb292460c19a74f9c338d08d95771f5b2%7C70de199207c6480fa318a1afcba03983%7C0%7C0%7C637636969230873852%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=tQupMuj2ZMht%2B%2BwT5b5ovpR8JhdUo6DsUYnAwCbj5Lo%3D&reserved=0>
participants (1)
-
Buongiorno Nardelli, Marco