[pstricks] The parallelepiped looks outside the cylindre

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jul 29 19:55:57 CEST 2011


Am 28.07.2011 22:33, schrieb Ernesto-Javier Espinosa-Herrera:
>
> I want to hide the parallelepiped with the grid of the cylindre.

please provide _always_ full working examples!

\documentclass{article}
\usepackage[dvipsnames]{pstricks}
\usepackage{pst-solides3d}

\begin{document}
\psset{lightsrc=20 20 19,viewpoint=15 15 9,Decran=10,solidmemory}
\begin{pspicture}(-3,-1.5)(3,3)
\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)
\psSolid[
   action=none,
   object=cylindre,
   fillcolor=Maroon!10,
   incolor=Maroon!10,
   h=6,
   r=6,
   name=cyl]
%%%
\psSolid[
   action=none,
%  action=draw*,
   object=parallelepiped,
   fillcolor=Gray!30,
   a=3,
   b=6,
   c=.4,
   name=par]
%%
\psSolid[object=fusion,base=cyl par,opacity=0.4,](0,0,0)
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list