dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

snapshot3D with webshot=TRUE is dangerous #370

Open stla opened 1 year ago

stla commented 1 year ago

Hello,

I had a big mesh. Maybe about 500000 vertices and 1e6 faces. It has multiple colors too. I ran snapshot3d with webshot=TRUE and this has frozen the laptop, completely blocked, totally irresponsive. I had to shut it down by brutally pressing the power button.

So I thought maybe a force option would be reasonable in snapshot3d, which whould be FALSE by default. It would be ignored if webshot=FALSE. If webshot=TRUE and force=FALSE and the mesh is big, no snapshot would be generated, instead a warning would be printed, something like "Your mesh is big and using webshot is not safe; use force=TRUE if you are sure you want to use webshot".

Now I don't know what would be the limit defining a "big" mesh.