[pstricks] computed normal in \ThreeDput

Manfred Braun m.braun at uni-duisburg.de
Mon Oct 31 17:45:16 CET 2005


Dear Herbert and others,
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 
  [normal=30 cos 0 30 sin]
the commands cos and sin are not processed. Can one force the expression to
be expanded first and the result to be interpreted as the normal? (Something
like \expandafter, which doesn't apply here).
I really would like the possibility to compute a normal vector internally
from some data before passing it to \ThreeDput.
Best regards,
Manfred

-----Ursprüngliche Nachricht-----
Von: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] Im Auftrag
von Herbert Voss
Gesendet: Donnerstag, 27. Oktober 2005 15:44
An: pstricks at tug.org
Betreff: Re: [pstricks] computed normal in \ThreeDput

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

_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks






More information about the PSTricks mailing list