MPI-IS / mesh

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

Fix OpenGL not available crash #97

Open radekd91 opened 5 months ago

radekd91 commented 5 months ago

When OpenGL cannot be properly imported (when it is not installed at all or when it doesn't work for some reason), the import of the library will crash with a NotImplementedError

This fix catches this error and allows the library to be imported without crashing. OpenGL related functionality (MeshViewer) will not work but at least the Mesh class can be used. Many users might only need that functionality.