mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 05:10:34 +05:00
webgui.Draw - boolean argument "show"
Useful to extract webgui scene data without displaying it
This commit is contained in:
parent
d87e5f102e
commit
cd8d43cbf9
@ -361,12 +361,12 @@ def _get_draw_default_args():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def Draw(obj, *args, **kwargs):
|
def Draw(obj, *args, show=True, **kwargs):
|
||||||
kwargs_with_defaults = _get_draw_default_args()
|
kwargs_with_defaults = _get_draw_default_args()
|
||||||
kwargs_with_defaults.update(kwargs)
|
kwargs_with_defaults.update(kwargs)
|
||||||
|
|
||||||
scene = WebGLScene(obj, args, kwargs_with_defaults)
|
scene = WebGLScene(obj, args, kwargs_with_defaults)
|
||||||
if wg is not None and wg._IN_IPYTHON:
|
if show and wg is not None and wg._IN_IPYTHON:
|
||||||
if wg._IN_GOOGLE_COLAB:
|
if wg._IN_GOOGLE_COLAB:
|
||||||
from IPython.display import display, HTML
|
from IPython.display import display, HTML
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user