mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
Add optional arguments "center" and "radius" to webgui.Draw()
This commit is contained in:
parent
c488fa936a
commit
919000a5ef
@ -333,6 +333,15 @@ class WebGLScene(base):
|
|||||||
else:
|
else:
|
||||||
d["objects"].append(obj._GetWebguiData())
|
d["objects"].append(obj._GetWebguiData())
|
||||||
|
|
||||||
|
if 'center' in kwargs:
|
||||||
|
center = list(kwargs['center'])
|
||||||
|
if len(center) == 2:
|
||||||
|
center.append(0.)
|
||||||
|
d["mesh_center"] = center
|
||||||
|
|
||||||
|
if 'radius' in kwargs:
|
||||||
|
d["mesh_radius"] = kwargs['radius']
|
||||||
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user