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.

Click button to open the graphic in a separate full window. The figure can be rotated by clicking and dragging with a mouse or swiping on a touch device, as well as zoomed in or out with a mouse wheel or pinching on a touch device.

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:


Examples Page