[pstricks] computed normal in \ThreeDput

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Oct 31 19:01:25 CET 2005


Manfred Braun wrote:

 > Recalling my question about "computed" normal vectors, it seems that your
 > solution doesn't work. The PostScript code provided for the parameter
 > "normal" isn't expanded but just passed to \psk at normal. Using


there is nothing to expand ...

 > \define at key[psset]{pst-3d}{normal}{\def\psk at normal{#1}}


\define at key[psset]{pst-3d}{normal}{\def\psk at normal{#1 }}


the space behind #1 is important.
my working example:

\documentclass{article}

\usepackage{pst-3d}
\makeatletter
\define at key[psset]{pst-3d}{normal}{\def\psk at normal{#1 }}
\makeatother
\begin{document}

   \ThreeDput[normal=30 cos 0 30 sin ](0,0,0){(some graphics)}

   \ThreeDput[normal=-30 cos 0 -30 sin ](2,0,0){(some graphics)}

\end{document}

Herbert




More information about the PSTricks mailing list