Bubble function for gmesh topologies