[pstricks] help with pst-solides3d

Jean-Paul Vignault jpv at melusine.eu.org
Fri Dec 19 11:11:53 CET 2008


Dear Hamed, dear Juergen,

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]%
\psset{range=-4 4}
\psSolid[object=courbe,linewidth=0.1,
   r=0,linecolor=red,
   resolution=360,
   function=CosRad]
\psSolid[object=grille,base=-4 4 -4 
4,linecolor=blue,linewidth=0.5\pslinewidth](0,0,3)
\psPoint(0,0,3){O1}\psPoint(0,0,7){Z1}\psline(O1)(Z1)\psline[linestyle=dashed](O1)(O)
\pstVerb{/tmin -4 def /tmax 4 def}%
\defFunction{sinRad}(t){t}{t Sin 3 mul}{3}
\psSolid[object=courbe,linewidth=0.1,
   r=0,linecolor=blue,
   resolution=30,
   function=sinRad]
\end{pspicture}

Regards,

Jean-Paul




More information about the PSTricks mailing list