mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
webgui Redraw with arguments (replace mesh etc.)
This commit is contained in:
parent
cd8d43cbf9
commit
2ff886457f
@ -222,6 +222,17 @@ class WebGLScene(base):
|
||||
self.kwargs = kwargs
|
||||
self.encoding = "b64"
|
||||
|
||||
def Redraw(self, *args, **kwargs):
|
||||
if args or kwargs:
|
||||
if 'show' not in kwargs:
|
||||
kwargs['show'] = False
|
||||
|
||||
new_scene = Draw(*args, **kwargs)
|
||||
self.obj = new_scene.obj
|
||||
self.args = new_scene.args
|
||||
self.kwargs = new_scene.kwargs
|
||||
super().Redraw()
|
||||
|
||||
def GetData(self, set_minmax=True):
|
||||
self.kwargs["encoding"] = self.encoding
|
||||
typ = type(self.obj)
|
||||
|
Loading…
Reference in New Issue
Block a user