After successful installation of Asymptote, when I execute a sample file why are there horizontal lines in the image (with pdflatex) but if I make it as a separate asy file and execute asy file.asy with settings.outformat="pdf" It is rendered well. What is the issue? Here is the tex source code:
\documentclass{standalone}
\usepackage{asymptote}
\begin{document}
\begin{asy}[width=10cm,height=10cm]
settings.prc=false;
import three;
draw(unitsphere);
\end{asy}
\end{document}

The foo-1.asy code:
if(!settings.multipleView) settings.batchView=false;
settings.tex="pdflatex";
defaultfilename="3dintersect-1";
if(settings.render < 0) settings.render=4;
settings.outformat="";
settings.inlineimage=true;
settings.embed=true;
settings.toolbar=false;
viewportmargin=(2,2);
settings.prc=false;
import three;
draw(unitsphere);
size(284.52756pt,284.52756pt,keepAspect=true);
foo.tex, try openingfoo-1.asyand compiling it directly usingasy. If the problem shows up there, then post the code forfoo-1.asy; if not, it's a problem with theasymptotepackage. 2) This is a good time to be posting on the Asymptote help forum, as John Bowman (one of the creators) is actively trying to iron out bugs and irregularities. – Charles Staats May 11 '14 at 12:40asy foo-1.asyshould produce a file calledfoo-1.pdf. Openfoo-1.pdfand see what it looks like. – Charles Staats May 11 '14 at 16:58asy foo-1.asygenerates the same error :(. noticed just now @CharlesStaats – subham soni May 11 '14 at 17:14foo-1.asy? – Charles Staats May 12 '14 at 16:143dintersect-1.asyand ran it, and it worked fine on my machine. Can you tell me what operating system, pdf viewer, and version of Asymptote you are using? (If you don't know the asymptote version, you can get it by runningasy -versionat the command line.) – Charles Staats May 12 '14 at 16:26