Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, surfaces):
self.surfaces = surfaces
self.id = f"sl{SurfaceLoop._ID}"
SurfaceLoop._ID += 1
self.code = "\n".join(
[
f"{self.id} = news;",
"Surface Loop({}) = {{{}}};".format(
self.id, ",".join([s.id for s in surfaces])
),
]
)
return
def add_surface_loop(self, *args, **kwargs):
e = SurfaceLoop(*args, **kwargs)
self._GMSH_CODE.append(e.code)
return e