vedo icon indicating copy to clipboard operation
vedo copied to clipboard

How to call `show` function 3 times in one program?

Open zhang-qiang-github opened this issue 2 years ago • 3 comments

In a for loop, i=1, I need to call show to visual some information, then close it. For i=2, I need to show some information again. In this way, I need to call show many times. But I failed.

My tested code is:

from vedo import *

p = Point([0, 0, 1], r=10, c='r')
show(p)

p = Point([0, 1, 0], r=10, c='g')
show(p)

It can only show a red point, and never show the green point. And a bug is reported: Process finished with exit code -1073741819 (0xC0000005)

Then, I test the examples/closewindow.py, and it only show the first plotter instance.

How can I show the first window, and close it. Then, I can open a new window?

zhang-qiang-github avatar Mar 06 '23 06:03 zhang-qiang-github

I find the following code works:


from vedo import *
plt = Plotter()
p = Point([0, 0, 1], r=10)
plt.show(p)

plt = Plotter()
p = Point([0, 1, 0], r=10, c='g')
plt.show(p)

zhang-qiang-github avatar Mar 06 '23 06:03 zhang-qiang-github

what vedo version are you using?

marcomusy avatar Mar 06 '23 13:03 marcomusy

It is 2023.4.3

zhang-qiang-github avatar Mar 07 '23 05:03 zhang-qiang-github