[pstricks] help with pst-solides3d

Hamed Al-Sulami hhaalsalmi at kau.edu.sa
Fri Dec 19 13:14:37 CET 2008


Dear Jean-Paul,

 

It seem to my that the position of -where you put it in your preblema-
"\axesIIID" does

Affect at lest my  outcome as you can see in the following example and I
attached the PDF of each one with the log file of one of them

Ex1:

\listfiles

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

\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]%

\axesIIID(0,0,0)(4,4,7)

\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=dashe
d](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}

\end{document}

 

Ex2:

 

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

\axesIIID(0,0,0)(4,4,7)

\psset{lightsrc=10 -20 50,viewpoint=50 -20 30 rtp2xyz,Decran=50}

\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=dashe
d](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}

\end{document}

 

Ex3:

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

\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=dashe
d](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]%

\axesIIID(0,0,0)(4,4,7)  

\end{pspicture}

\end{document}

 

Ex4:

\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=dashe
d](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}

\end{document}

 

Sorry for the long post

 

Thanks  a lots.

 

Regards,

 

Hamed 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1.pdf
Type: application/pdf
Size: 17480 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0004.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2.pdf
Type: application/pdf
Size: 17236 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0005.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex3.pdf
Type: application/pdf
Size: 17494 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0006.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex4.pdf
Type: application/pdf
Size: 17485 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0007.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex3.log
Type: application/octet-stream
Size: 6082 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0001.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://tug.org/pipermail/pstricks/attachments/20081219/55b34b89/attachment-0001.pl 


More information about the PSTricks mailing list