[pstricks] The parallelepiped looks outside the cylindre

Erneso-Javier Espinosa-Herrera ejeh45 at hotmail.com
Fri Jul 29 20:28:10 CEST 2011


Sorry.

 

> I want to hide the parallelepiped with the grid of the cylinder.

 

\documentclass{article}

\pagestyle{empty}

\listfiles

\usepackage{pst-solides3d}

\begin{document}

\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=red!10,%

incolor=red!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)

\end{pspicture}

\end{center}

\end{document}

 

Thanks again.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110729/c7b88019/attachment.html>


More information about the PSTricks mailing list