[pstricks] The grid option in pst-solides3d

Jon Joseph josco.jon at gmail.com
Fri Jan 15 04:15:12 CET 2010


The grid option "reduces" the grid but does not turn it off as indicated by the documentation (page 48). It does seem to work correctly in the psSurface example in the documentation. I have included two examples. Maybe I'm using it incorrectly?  Jon


%
% grid does not completely turn off the grid
%
\begin{pspicture}[showgrid=false](0,-2)(2,2)
	\psset{lightsrc=30 -40 20,viewpoint=30 -40 20,
		Decran=100,linewidth=0.5\pslinewidth, ngrid=25 25}
	\defFunction{cosshell}(u,v)%
		{u}{u sqrt v Cos mul}{u sqrt v Sin mul}%
	\psSolid[object=cylindre,  
		action=draw**,
		h=.1, r=2.5 sqrt,
		incolor=red,
		fillcolor=red,
		RotY=90](2.5,0,0)
	\psSolid[object=surfaceparametree,
		base=0 4 0 2 pi mul,
		%action=draw**,
		grid,
		linewidth=0.5\pslinewidth,
		%linecolor=cyan!50,
		fillcolor=red!50,
		incolor=yellow,
		function=cosshell,
		opacity=.7](0,0,0)
	\axesIIID(0,0,0)(5,5,3)
\end{pspicture}

%
% grid completely turns off the grid. Example from documentation.
%
\psset{unit=0.5}
\psset{lightsrc=30 30 25} 
 \psset{viewpoint=50 40 30 rtp2xyz,Decran=50} 
 \begin{pspicture}(-7,-8)(7,8) 
	 \psSurface[fillcolor=red!50,ngrid=.25 .25, 
		           incolor=yellow,linewidth=0.5\pslinewidth, 
		           grid,axesboxed](-4,-4)(4,4){% 
		           y dup mul x dup mul sub 4 div}
 \end{pspicture}





More information about the PSTricks mailing list