Chain a GridFunction with a CoefficientFunction

Hi!

I have a GridFunction g (representing a Level Set Function), and I want to change the corresponding level set using different transformations, e.g. a rotation, let’s call the corresponding CoefficientFunction f.

To this end, I’d need to create a function g∘︎f, is this possible somehow?

Thanks a lot!