I tried to take snapshots of a number of obj files, so I use a loop in my script.
I add mv.close (where mv is MeshViewer) at the end but there are more and more viewer windows when the program running.
for fname in .....
target_mesh = Mesh(filename=fname)
mv = target_mesh.show()
mv.save_snapshot(os.path.join(imgfolder, snapshot_name))
mv.close
How to actually close the windows while it loops and avoid too many active windows at the same time?
I tried to take snapshots of a number of obj files, so I use a loop in my script. I add mv.close (where mv is MeshViewer) at the end but there are more and more viewer windows when the program running.
How to actually close the windows while it loops and avoid too many active windows at the same time?