MPI-IS / mesh

MPI-IS Mesh Processing Library
Other
643 stars 147 forks source link

how to close the mesh viewer window #48

Closed yifanh1 closed 3 years ago

yifanh1 commented 3 years ago

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?

Adorablepet commented 3 years ago

@yifanh1 how to solve this problem? Could you tell me? thanks.

yifanh1 commented 3 years ago

@yifanh1 how to solve this problem? Could you tell me? thanks.

should be

mv.close()