eth-igl / gp2024-Assignments

0 stars 0 forks source link

Load button crashes the viewer #35

Closed 55mmm closed 2 months ago

55mmm commented 2 months ago

Hello,

Using the "Load" button crashes the viewer for all meshes. I just checked and this happens in the initial handout state for homework 4 (837c6c3) too.

It says terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc

Best regards, Michael

segaviv commented 2 months ago

Hi,

Please don't use the load button provided by libigl's default viewer menu. It will load the mesh into libigl's viewer data, but will not update the variables that you work with (defined in main_starter.cpp).

You can implement a loading option in the GUI yourself if you'd like (and update the local variables), or just start the program with the mesh filename given in the first argument (as we did in the previous homeworks).