[pstricks] fusing objects in pstsolides3d

Michael Sharpe msharpe at ucsd.edu
Thu Jul 15 17:21:19 CEST 2010


On Jul 15, 2010, at 7:53 AM, Zbigniew Nitecki wrote:

> The following code, which is essentially copied from the documentation (EN) for pst-solides3d, page 
>> % !TEX TS-program = latex
>> \documentclass[11pt]{article}
>> %\usepackage{pstricks, pst-plot, pst-math, pst-3dplot}
>> %\usepackage{pst-grad, pst-func, pst-text}
>> %\usepackage{pstricks-add}
>> %\usepackage{pst-3d}
>> \usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}
>> \usepackage{pst-3d}
>> 
>> \usepackage{calculusmacros}
>> 
>> \title{Brief Article}
>> \author{The Author}
>> %\date{}                                           % Activate to display a given date or no date
>> 
>> \begin{document}
>> \maketitle
>> %
>> \begin{pspicture}(-5,-6.5)(3,6.5) 
>> \psset{solidmemory}
>> \psset{unit=0.75}
>> \psset{lightsrc=10 -20 50,viewpoint=50 -20 30 rtp2xyz,
>> 	Decran=50}
>> \psSolid[object=cylindre,h=6,fillcolor=blue,
>> r=1.5, ngrid=4 16, action=none, name=A1, ](0,0,-4)
>> \psSolid[object=anneau,h=6,fillcolor=red!50, R=4,r=3,h=1,
>> action=none, name=B1, ](0,0,-1)
>> \psSolid[
>> 	object=fusion,
>> 	action=draw**,
>> 	base=A1,B1,
>> ]
>> \composeSolid
>> %\pstThreeDCoor[zMax=7]
>> \end{pspicture}
>> 		
>> \end{document}
> 
> returns the following error message:
> 
>> ! Package xkeyval Error: `B1' undefined in families `,pst-solides3d,pst-3d,pstr
>> icks-add,pst-3dplot'.
>> 
>> See the xkeyval package documentation for explanation.
>> Type  H <return>  for immediate help.
>>  ...                                              
>>                                                   
>> l.34 \end
>>          {pspicture}
>> ? 
> and only the first object is printed.
> What am I doing wrong? 
> 

You miscopied---in the last \psSolid, you should have 'base=A1 B1' not 'base=A1,B1'.

When copying from a pdf to TeX, do not use the current version of Preview or any pdf viewer based on Apple's PDFKit. Adobe Reader is currently more accurate.

Michael 




More information about the PSTricks mailing list