[pstricks] help with pst-solides3d

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Dec 21 10:21:49 CET 2008


Jean-Paul Vignault schrieb:

> the error is "/undefined in CosRad" because \axesIIID macro clean up
> all functions in memory.
> 
> You can try this code :
> 
> \documentclass{article}
> \usepackage{pst-solides3d}
> \begin{document}
> \pagestyle{empty}
> \psset{unit=0.5}
> \begin{pspicture}(-6,-3)(6,8)
> \psframe*[linecolor=blue!50](-6,-3)(6,8)
> \psset{lightsrc=10 -20 50,viewpoint=50 -20 30 rtp2xyz,Decran=50}
> \axesIIID(0,0,0)(4,4,7)
> \defFunction{CosRad}(t){t 2 mul Cos 4 mul}{t}{0}
> \psSolid[object=grille,base=-4 4 -4 
> 4,linecolor=red,linewidth=0.5\pslinewidth]%

important is only that \defFunction is called after \axesIIID.

\begin{pspicture}(-6,-3)(6,8)
\psframe*[linecolor=blue!50](-6,-3)(6,8)
\psset{lightsrc=10 -20 50,viewpoint=50 -20 30 rtp2xyz,Decran=50}
\psSolid[object=grille,base=-4 4 -4
4,linecolor=red,linewidth=0.5\pslinewidth]%
\axesIIID(0,0,0)(4,4,7)
\defFunction{CosRad}(t){t 2 mul Cos 4 mul}{t}{0}


this works too

Herbert





More information about the PSTricks mailing list