Creating and meshing geometry using level set function definition

Hello,
I am a new in the platform and I want to create a simple square domain with a 3 petal flower-like shape in it (I have the level set definition of this flower geometry, shared below). Then I want to create a mesh in the area between square and the flower geometry. Can I define a geometry (and then mesh it) using this level set function? Thanks in advance.

LS definition:
A=(x.^2 + y.^2 );
LS = (sqrt(A) - 0.27 -(0.27)(2)cos(3*atan2(x,y)));

Hi Caren - certainly not directly in Rhino. I imagine with the right code one mighty be able to do what you want in a script.

-Pascal