Embed interactive visualizations in PDF files

With polymake and jReality you can even embed your visualizations as interactive applets into pdf files (from LaTeX).

  1. Visualize your polytope, or any other object, with jReality. You might need to call jreality($x->VISUAL); or something similar.
  2. Export the visualized object from jReality: File → Export → U3D
  3. In your tex-file you need to add the movie15 package and then use the \includemovie command to include the applet:
        \usepackage[3D]{movie15}
        ...
      	\includemovie[
	      mimetype=model/u3d,
	      3Djscript=Encompass.js,
              autoplay
	   ]
	{ \textwidth }
	{ 0.7\textwidth }
	{object.u3d}
  1. Compile the LaTeX source with pdflatex.
  2. View the pdf file with a reasonably recent version of Adobe Reader.

Options for includemovie

Further information