mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Pass mesh face transparency to webgui
This commit is contained in:
parent
2024a67c74
commit
d87e5f102e
@ -189,7 +189,7 @@ def GetData(mesh, args, kwargs):
|
||||
for i, el in enumerate(mesh.Elements2D()):
|
||||
pnts[i, :, 3] = el.index - 1
|
||||
fds = mesh.FaceDescriptors()
|
||||
d["colors"] = [fd.color for fd in fds]
|
||||
d["colors"] = [fd.color +(fd.transparency,) for fd in fds]
|
||||
d["mesh_regions_2d"] = len(fds)
|
||||
d["names"] = [fd.bcname for fd in fds]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user