Physical Group names not propagated during STEP file export
When exporting Physical Entities defined via the OCC kernel to a STEP
file I am having trouble seeing the tagged surfaces with their given name. Instead, it seems that Gmsh uses the Elementary Entities (or a subgroup of them) and some auto-generated name. Is that intentional, am I doing something wrong or is this a bug?
MWE
import gmsh
gmsh.initialize()
gmsh.model.add("MWE")
lc = 0.1
pts = []
pts.append(gmsh.model.occ.addPoint(0, 0, 0, meshSize=lc))
pts.append(gmsh.model.occ.addPoint(0, 1, 0, meshSize=lc))
pts.append(gmsh.model.occ.addPoint(1, 1, 0, meshSize=lc))
pts.append(gmsh.model.occ.addPoint(1, 0, 0, meshSize=lc))
pts.append(pts[0]) # make periodic
curve = gmsh.model.occ.addBSpline(pts)
curve_l = gmsh.model.occ.addCurveLoop([curve])
gmsh.model.occ.addPlaneSurface([curve_l])
gmsh.model.occ.synchronize()
for i, (dim, tag) in enumerate(gmsh.model.getEntities(2)):
gmsh.model.addPhysicalGroup(dim, [tag], name=f"Surf{i}")
gmsh.model.mesh.generate(2)
gmsh.write("labeled.stp")
# gmsh.fltk.run()
gmsh.finalize()