mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00: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.kwargs = kwargs
|
||||||
self.encoding = "b64"
|
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):
|
def GetData(self, set_minmax=True):
|
||||||
self.kwargs["encoding"] = self.encoding
|
self.kwargs["encoding"] = self.encoding
|
||||||
typ = type(self.obj)
|
typ = type(self.obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user