[pstricks] The parallelepiped looks outside the cylindre
Ernesto-Javier Espinosa-Herrera
ejeh45 at hotmail.com
Thu Jul 28 22:33:12 CEST 2011
I want to hide the parallelepiped with the grid of the cylindre.
\begin{center}
\psset{unit=1}
\psset{lightsrc=20 20 19,viewpoint=15 15 9,Decran=10}
\begin{pspicture}(-2,-2)(4,3)
\psSolid[%
action=draw*,%
object=cylindre,%
fillcolor=Maroon!10,%
incolor=Maroon!10,%
h=6,%
r=6%
](0,0,0)
%%%
\psSolid[%
action=draw**,%
object=parallelepiped,%
fillcolor=Gray!30,%
a=3,%
b=6,%
c=.4
](0,0,0)
%%
\psPoint(0,8,0){P1}
\psPoint(0,8,6){P2}
\pcline(P1)(P2)
\ncput*{$h$}
\psPoint(0,3,.2){P11}
\psPoint(0,6,6){P21}
\pcline[linestyle=dashed](P1)(P11)
\pcline[linestyle=dashed](P2)(P21)
%\axesIIID(0,0,0)(8,8,8)
\end{pspicture}
\end{center}
Thanks, Ernesto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110728/0dd20803/attachment.html>
More information about the PSTricks
mailing list