Hello Christopher,
thanks for the fix! It works fine now, except for some smaller issues:
When the ngsgui window starts, the first solution drawn is always corrupted. It shows some weird clipping error:
When i play around with the lighting and clipping settings, it dissappears after a while most times...
I would also like to set the min and max value of the drawn function programatically, is this possible?
In the meantime i tried to find a workaround for the GUI using the VTK output of ngsolve. The field is written as .vtk file via vtk = VTKOutput(..) and calling vtk.Do(). It is then read back in to a PyQt vtk object and integrated in the display:
I attached the example code. In my opinion, this looks really nice and is very convenient for the user. Unfortunately, the vtk output file gets very large, when a more complex mesh is used, and the writing/reading takes a long time. If one could skip that step by converting the NGSolve vtk-object to a PyQt vtk-object this may work much faster.
Maybe someone with a little experince knows if and how this is possible.