[pstricks] Strange 3D behaviour with viewpoint 1 -1 1
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Wed Sep 22 13:38:07 CEST 2004
Georg Verweyen wrote:
> The arrows of 3D graphics are broken if (and only if) all of the
> following conditions are fullfilled:
> - The linewidth is quite thick.
> - The viewpoint is 1 -1 1.
> - The ps file is transformed to pdf.
> - The AdobeReader is /not/ set to "print as image".
> - The file is printed, you will only see the effect on the paper,
> while the display is okay.
> You can see this behaviour when commenting and uncommenting the two
> different lines with viewpoint settings in the following example.
please try latex->dvips->ps2pdf with the following
Herbert
\listfiles
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-3d}
\usepackage{pstricks-add}
\defineTColor{hell}{black} % This provides transparency
% for the frame
\begin{document}
\pagestyle{empty}
\sffamily
\begin{pspicture}(6,6)
\psset{%
unit=0.75,%
viewpoint=1.2 -1.5 1,% If this is active, everything's fine
arrowinset=0,%
arrowscale=0.75 0.2,%
linecolor=lightgray,%
linewidth=2%
}
\ThreeDput[normal=0 0 1](0,0,5){%Arrow to 2
\psline[arrows=-](0,1)(2,1)%
}
\ThreeDput[normal=1 0 0](2,1,5){%Frame at 2
\psframe[linewidth=.2mm, style=hell](-2,-1)(2,1)
}
\ThreeDput[normal=1 0 0](2,1,5.5){%Label
\Large \white Something
}
\ThreeDput[normal=0 0 1](0,0,5){%Arrow from 2
\psline[arrows=-](2,1)(5,1)%
}
\ThreeDput(2.2,1,5){%
\makebox[0em][l]{\Large Arrow}
}
\end{pspicture}
\begin{pspicture}(6,6)
\psset{%
unit=0.75,%
viewpoint=1 -1 1,% try activating this line and print as pdf
arrowinset=0,%
arrowscale=0.75 0.2,%
linecolor=lightgray,%
linewidth=2%
}
\ThreeDput[normal=0 0 1](0,0,5){%Arrow to 2
\psline[arrows=-](0,1)(2,1)%
}
\ThreeDput[normal=1 0 0](2,1,5){%Frame at 2
\psframe[linewidth=.2mm, style=hell](-2,-1)(2,1)
}
\ThreeDput[normal=1 0 0](2,1,5.5){%Label
\Large \white Something
}
\ThreeDput[normal=0 0 1](0,0,5){%Arrow from 2
\psline[arrows=-](2,1)(5,1)%
}
\ThreeDput(2.2,1,5){%
\makebox[0em][l]{\Large Arrow}
}
\end{pspicture}
\end{document}
*File List*
article.cls 2001/04/21 v1.4e Standard LaTeX document class
size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty 2004/05/06 v0.2k LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/29 v1.05 `PSTricks' (tvz)
xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-3d.sty 2004/07/15 package wrapper for pst-3d.tex
pst-3d.tex 1997/03/25 97 `pst-3d' (tvz)
pstricks-add.sty 2004/07/18 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex 2004/09/01 v2.14 `PSTricks-add' (hv)
***********
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list