Metaballs are, in computer graphics, organic-looking n-dimensional objects. The technique for rendering metaballs was invented by Jim Blinn in the early 1980s.
Each metaball is defined as a function in n-dimensions (e.g., for three dimensions, ; three-dimensional metaballs tend to be most common, with two-dimensional implementations popular as well). A thresholding value is also chosen, to define a solid volume. Then,
represents whether the volume enclosed by the surface defined by metaballs is filled at or not.
A typical function chosen for metaballs is , where is the center of the metaball. However, due to the division, it is computationally expensive. For this reason, approximate polynomial functions are typically used.