[pstricks] Confusion with with \psSolid[](0,0,0)?

robert.fischer10 at arcor.de robert.fischer10 at arcor.de
Wed Jul 15 23:45:47 CEST 2009


Hello,

below examples, which leads to different results. The origin of a solides3D object (e.g. cylinder) is shifted in
combination with 'solidmemory' and the (0,0,0)-option. Drawing \axesIIID after psSolid eliminates the shifting again. 

Works this as designed? For reproducing please comment out the single parts. psgrid is the reference system.

Best Regards,
Robert.

\documentclass{minimal}
\usepackage{pst-pdf}
\usepackage{pstricks}
\usepackage{pst-solides3d}
\usepackage{pstricks-add}
\pagestyle{empty}

\begin{document}
%
\begin{minipage}{0.6\textwidth}
	\begin{pspicture}(-2,-2)(2,3)
		\psgrid[gridcolor=gray,subgridcolor=lightgray]
		\psset{lightsrc=viewpoint,lightintensity=1.2,Decran=17}
%OK:
%\psSolid[object=cylindre,
%	h=2,r=0.01,mode=4,
%	action=draw**]
%OK:
%\psSolid[object=cylindre,
%	h=2,r=0.01,mode=4,
%	action=draw**](0,0,0)
%OK:
%\psset{solidmemory}
%\psSolid[object=cylindre,
%	h=2,r=0.01,mode=4,
%	action=draw**]
%NOT OK???? (shifted to right):
%\psset{solidmemory}
%\psSolid[object=cylindre,
%	h=2,r=0.01,mode=4,
%	action=draw**](0,0,0)
%(also ok, if \axesIIID afterwards: see below)
%OK:
%\codejps{
%	0 0.01 2 {4} newcylindre
%	drawsolid**}
%NOT OK????? (shifted to right):
%\psset{solidmemory}
%\codejps{
%	0 0.01 2 {4} newcylindre
%	drawsolid**}
%	(also ok, if \axesIIID afterwards: see following two lines)

%		\axesIIID[showOrigin=true,axisnames={x,y,z},
%		arrowinset=0,arrowscale=1.5](1,1,1)(2,2,3)

		\end{pspicture}
	\end{minipage}


More information about the PSTricks mailing list