Algorithm for blending/merging shapes together like liquid This is a basic example of how 2 circles would come together:



A more complex example would be an arbitrarily shaped polygon like a country on earth, merging with another one or a circle. All of the edges would have to somehow attach to the circle as you move the circle around, so it feels like it's adhering together like liquid.

Wondering if there are standard equations for doing this, or how it is done.
The Povray raytracer has an object like this, the blob. You find its code with some explanations at https://github.com/POV-Ray/povray/blob/master/source/core/shape/blob.cpp .