vedo
vedo copied to clipboard
How to call `show` function 3 times in one program?
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?
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)
what vedo version are you using?
It is 2023.4.3