recursively get an entity's constituent entities dimTags
Is there a way to get the points associated with a curve of a particular tag; the points and curves of a surface of a particular tag; and/or the points, curves, and surfaces of volume of a particular tag? As far as I can tell, the getEntities
function can at best return all dimTags
of a particular dimension. I use a Julia API example below with comments on what I would like:
gmsh.initialize()
gmsh.model.add("dummy")
coords = (0, 0, 0)
dx = dy = 1
SURFACE_DIM = 2
rectangle_tag = gmsh.model.occ.addRectangle(coords..., dx, dy)
# Get the dimTags of points and curves of this rectangle tag
# (this function doesn't exist)
constituent_dim_tags = gmsh.model.getEntities(
; dim = SURFACE_DIM, tag = rectangle_tag)
# ((0, 1), (0, 2), (0, 3), (0,4), (1, 1), (1, 2), (1, 3), (1, 4))
display(constituent_dim_tags)
gmsh.finalize()