The following code is actually the perfect way to calculate a metaball (inverse transform) but it is much slower.