Get boundary points from custom cell tags

Sorry, I’m not expert about it so I’ll try to explain my self better. I need the two vertexes for each cell marked with 1 (in yellow) which are part of the boundary for subdomain 1 (In order to define the boundary, for example, of a more complex domain) → (the red points in the figure)

a

1 Like