fix netgen.gui.Snapshot

This commit is contained in:
Matthias Hochsteger 2023-01-23 11:57:33 +01:00
parent 9eb959f608
commit 8f11802953

View File

@ -57,7 +57,7 @@ if not netgen.libngpy._meshing._netgen_executable_started:
def Snapshot(w,h, filename=None):
netgen.Redraw(blocking=True)
import numpy
image = netgen.libngpy.Snapshot(w, h)
image = netgen.libngguipy.Snapshot(w, h)
image = numpy.array(image, dtype=numpy.uint8).reshape(h, w, 3)
image = image[::-1,:,:]
if filename: