Boundaries names of a region

Hello community,
is there a way to know the name of all curves of region that we know its name ?
i.e a region that called “square_1”, how to know curves/ boundaries segments of this region


from a occ geometry that is possible by

names = [ for f in shape.solids[name].faces]

for a ngsolve mesh:

facenames = mesh.GetBoundaries()
names = [facenames[index] for index, val in enumerate(mesh.Materials(name).Boundaries()) if val]
1 Like