Archived post by paqwak the one called smooth union from there : iquilezles.org/articles/distfunctions/