mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-01 21:34:31 +05:00
euler_angles and scale argument in webgui Draw
This commit is contained in:
parent
a018931437
commit
fece35b830
@ -321,6 +321,11 @@ class WebGLScene(base):
|
|||||||
if "gui_settings" not in d:
|
if "gui_settings" not in d:
|
||||||
d["gui_settings"] = self.kwargs["settings"]
|
d["gui_settings"] = self.kwargs["settings"]
|
||||||
|
|
||||||
|
if "euler_angles" in kwargs:
|
||||||
|
camera = d["gui_settings"].get("camera", {})
|
||||||
|
camera["euler_angles"] = kwargs["euler_angles"]
|
||||||
|
d["gui_settings"]['camera'] = camera
|
||||||
|
|
||||||
d["objects"] = []
|
d["objects"] = []
|
||||||
for obj in kwargs["objects"]:
|
for obj in kwargs["objects"]:
|
||||||
if isinstance(obj, dict):
|
if isinstance(obj, dict):
|
||||||
@ -367,6 +372,7 @@ def _get_draw_default_args():
|
|||||||
nodal_p1=False,
|
nodal_p1=False,
|
||||||
settings={},
|
settings={},
|
||||||
fullscreen=False,
|
fullscreen=False,
|
||||||
|
scale=1.0,
|
||||||
width=_default_width,
|
width=_default_width,
|
||||||
height=_default_height,
|
height=_default_height,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user