Taubin’s heart surface generated using marching cubes. The amount of data is deliberately reduced to allow rendering on mobile devices. The surface can easily be smoothed by increasing the number of points sampled in the isosurface
function.
The surface is defined implicitly by
\[ \left( x^2 + \frac{9}{4} y^2 + z^2 - 1 \right)^3 - x^2 z^3 - \frac{9}{80} y^2 z^3 = 0 \]Complete code for this example: