Example: Heart in 3D

Published 2014-03-15 | Author: cmhughes

An application of volumes of revolution for plotting a three-dimensional heart. If your TeX installation would throw an error "TeX capacity exceeded", you could use LuaLaTeX instead of pdfLaTeX, since it automatically allocates more memory.

This code was written by cmhughes on TeX.SE.

Download as: [PDF] [TEX]  •  [Open in writeLaTeX]

Heart in 3D

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de.

    color(0cm) = (purple);
    color(1cm) = (pink!80!purple);
    color(2cm) = (pink!90);
    color(3cm) = (pink) }
      axis equal,
      axis lines=none,
      colormap name =pink, 
      domain=0:2*pi,y domain=0:2*pi,
      z buffer=sort,


  • #1 all powers universal, December 15, 2014 at 6:02 p.m.

    I enjoy reading an article that will make people think. Also, thank you for allowing for me to comment!

Post a comment

Markdown syntax enabled. No HTML allowed.