[pstricks] computed normal in \ThreeDput
Manfred Braun
m.braun at uni-duisburg.de
Wed Nov 2 13:10:30 CET 2005
Thank you Herbert and thank you Manuel, both versions work fine!
Manfred
-----Ursprüngliche Nachricht-----
Von: Herbert Voss [mailto:LaTeX at zedat.fu-berlin.de]
Gesendet: Montag, 31. Oktober 2005 19:01
An: Manfred Braun
Betreff: Re: [pstricks] computed normal in \ThreeDput
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