[pstricks] computed normal in \ThreeDput

Herbert Voss LaTeX at zedat.fu-berlin.de
Thu Oct 27 15:43:56 CEST 2005


Manfred Braun wrote:

> Is there a possibility to specify a “computed” normal for the 
>  \ThreeDput command in pst-3d? What I mean is something like
> 
>   \ThreeDput[normal={30 cos} 0 {30 sin}](0,0,0){(some graphics)}
> 
> (which doesn’t work), instead of
> 
>   \ThreeDput[normal=0.866 0 0.5](0,0,0){(some graphics)}

\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)}

\end{document}

now "normal" cannot have values with a dimension

Herbert




More information about the PSTricks mailing list