Looks like the TriRemesh ‘Features’ input is supposed to do that? But it doesn’t do quite as good a job. This is your code without the C#:
Bubble_2024_Jul24_martynjhogg.gh (29.7 KB)
(oops, I included a scribble to give you credit but forgot to save the file - re-posted)
P.S. I have an aversion to mysterious black boxes but can plainly see what that C# is doing here, and it definitely looks better. Nice work.
P.P.S. For completeness, I added the C# back in this version (below). Why does the bubble get taller when the TriRemesh ‘Length’ input (‘Mesh Coarseness’) is reduced?
Bubble_2024_Jul24_martynjhogg_C.gh (36.5 KB)
Thanks again for showing us how to do this right.