# Asymptote generated 3D raster image

Consider the following minimal Asymptote 3D example:

\documentclass{article}
\usepackage{filecontents}
\usepackage{asymptote}
\begin{filecontents*}{testfile.asy}
import three;
currentprojection=perspective(3,-4,4,center=true);
draw((0,0,0)--(0,2,0));
draw((0,0,0)--(2,0,0));
draw((2,2,0)--(0,2,0));
draw((2,2,0)--(2,0,0));
draw((0,0,0)--(0,0,2));
draw((0,2,0)--(0,2,2));
draw((2,0,0)--(2,0,2));
draw((2,2,0)--(2,2,2));
draw((0,0,2)--(0,2,2));
draw((0,0,2)--(2,0,2));
draw((2,2,2)--(0,2,2));
draw((2,2,2)--(2,0,2));
\end{filecontents*}
\begin{document}
\asyinclude[height=25mm,inline=true,attach=false,viewportwidth=4cm,viewportheight=25mm]{testfile.asy}
\end{document}


It generated a 3D figure which is rotatable in Adobe Reader after the user clicks on it. However, the 'poster' image displayed first (which is also used for printing) is rendered as a raster image. Is there any way to render it vectorized?

settings.render=0;

render=0 force Asymptote to use an old algorithm (used before ver. 1.44). It generate vector graphics but it has some other restrictions about hidden removal. The result may be wrong.