[pstricks] projection in pst-solides3d

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Wed Sep 22 22:02:09 CEST 2010


The code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pst-solides3d,pst-plot,pst-3dplot,amsmath}
\begin{document}
		\begin{pspicture*}(-2.5,-2.0)(2.5,3.5)%	
			\psset{unit=0.25,lightsrc=40 50 50,viewpoint=18 40 25 rtp2xyz,solidmemory}
			\psSolid[object=plan,%		definition of plane @ z=0
				definition=equation,args={[0 0 1 0]},
				base=-2.5 2.5 -2.5 2.5,
			 	fillcolor=gray!30,
				name=zplane,
				ngrid=10 10, grid,
				action=draw**,
			]
		%
			\defFunction{zcurve}(t){t cos 2 mul}{t sin}{}%
			\psProjection[object=courbeR2,%		slice @ x=0 (front part)
				r=0.8,
				linecolor=black,linewidth=0.8pt, 
				plan=zplane,
			 	range=0 360,
				resolution=720, visibility=false,
				function=zcurve,
				action=draw**
				]
		%
			\composeSolid
		%
			\axesIIID[linecolor=darkgray, linewidth=1pt, showOrigin=false]%
				(0,0,0)(3.0,3.0,3.0)	
		\end{pspicture*}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
leads to the picture below.  I don't understand why the projected ellipse does not show up.


Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100922/37f80e3e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst3dtest1.3.2.pdf
Type: application/pdf
Size: 11918 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20100922/37f80e3e/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100922/37f80e3e/attachment-0003.html>


More information about the PSTricks mailing list