[pstricks] 3D-cone with liquid

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun Jan 22 16:25:10 CET 2006


Poul Riis wrote:
> I'm trying to draw an upside-down cone partly filled with liquid. How can
> I do better than below?

f.ex.:

\documentclass[12pt,a4paper]{article}
\usepackage{pst-vue3d}
\SpecialCoor

\begin{document}

\begin{pspicture}(-1.5,-1.5)(1.5,1.5)
\psset{PHI=10,Dobs=200,Decran=10,linewidth=0.1pt}
\pNodeThreeD(0,0,-31){temp}
\rput(temp){\ConeThreeD[PHI=15,RotX=180,linecolor=blue](0,0,0){28}{70}}
\ConeThreeD[RotX=180,fracHeight=0.3,linecolor=red](0,0,0){40}{100}
\end{pspicture}

\end{document}


Herbert




More information about the PSTricks mailing list