[pstricks] \pscustom | pst-3dplot
robert.fischer10 at arcor.de
robert.fischer10 at arcor.de
Sat Oct 3 20:11:00 CEST 2009
Hello,
I have tried to draw a section of a sphere. This section should be filled similar to the example in pst-3dplot-doc.pdf for ellipsoid by using \pscustom. But something went wrong and I do not know why... Maybe only a simple mistake by me...
Minimal Example:
\documentclass{minimal}
\usepackage{xkeyval}
\usepackage{pst-pdf}
\usepackage{pst-3dplot}
\begin{minipage}{0.49\textwidth}
%Basic Definitions
\def\MyCenter{0 }%decrease it e.g. to -8 to make surface bigger
\def\MyRad{\MyCenter -1 mul 2 add }
\def\MyCI{30 sin \MyRad mul }
\def\MyRI{30 cos \MyRad mul }
\def\MyCII{15 sin \MyRad mul }
\def\MyRII{15 cos \MyRad mul }
\psset{coorType=2}
\begin{pspicture}(-3,-3)(5.5,4)
\psgrid[gridcolor=gray,subgridcolor=lightgray]
%Axes
\pstThreeDCoor[linecolor=black,IIIDticks=none,
arrowinset=0,arrowscale=1.5,
xMin=0,yMin=0,zMin=0,
xMax=5,yMax=5,zMax=3,
nameX=$x$,nameY=$y$,nameZ=$u$]%
\pscustom[fillstyle=solid,fillcolor=lightgray]{
\pstThreeDCircle[beginAngle=0,endAngle=30,arrows=->
](\MyCI,0,\MyCenter)(0,0,\MyRI)(0,\MyRI,0)
\pstThreeDCircle[SphericalCoor,
beginAngle=60,endAngle=90,arrows=->
](\MyCenter,0,90)(\MyRad,0,0)(\MyRad,90,60)
\pstThreeDCircle[beginAngle=30,endAngle=0,arrows=->
](0,0,\MyCenter)(0,0,\MyRad)(0,\MyRad,0)
\pstThreeDCircle[SphericalCoor,
beginAngle=90,endAngle=60,arrows=->
](\MyCenter,0,90)(\MyRad,0,0)(\MyRad,0,90)
}
\end{pspicture}
\end{minipage}
Attachments:
a) Fig1.pdf: without pscustom. Looks well
b) Fig2.pdf: strange behaviour with pscustom. The lines drawed by spherical coordinates seems to be shifted
Best Regards,
Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig1.pdf
Type: application/pdf
Size: 9561 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20091003/1bbde1c8/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig2.pdf
Type: application/pdf
Size: 9173 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20091003/1bbde1c8/attachment-0001.pdf>
More information about the PSTricks
mailing list