[pstricks] pst-plot3d

Poul Riis Poul.Riis at skolekom.dk
Tue Aug 6 23:00:52 CEST 2013


Three questions on the project below:

1) How can I use postscript values for the length, width and height of the
psBox?
2) How can I control the color of a psBox?
3) Can I make a psBox transparent?

Poul Riis


\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage[danish]{babel}
\usepackage[x11names]{xcolor}
\usepackage{pst-3dplot}
\usepackage{amsmath}

\usepackage[left=1cm,right=1cm,top=2cm,bottom=2cm]{geometry}

\parindent0pt
\pagestyle{empty}


\begin{document}
\pstVerb{/lbund 8 def /bbund 4 def /tyk 0.1 def /bgavl bbund tyk 2 mul sub
def /Hgavl 4 def /hgavl Hgavl tyk 2 mul sub def}
\psset{Beta=10,xyzLight=-7 -3 4,showInside=false}
\begin{pspicture}(-5,-2)(3,4)
\psset{Alpha=200}
%\pstThreeDCoor[zMax=5]
\psBox(lbund 2 div neg,bbund 2 div neg,Hgavl 2 div neg){8}{0.1}{4}%bund
\psBox(lbund 2 div neg,bbund 2 div tyk sub,hgavl 2 div
neg){8}{3.8}{0.1}%bagside
\psBox(lbund 2 div tyk sub,bgavl 2 div neg,hgavl 2 div
neg){0.1}{3.8}{3.8}%fjerneste gavl
\psBox(tyk 2 div neg,bgavl 2 div neg,hgavl 2 div
neg){0.1}{3.8}{3.8}%mellemvæg
\psBox(lbund 2 div neg,bgavl 2 div neg,hgavl 2 div
neg){0.1}{3.8}{3.8}%nærmeste gavl
%\psBox(lbund 2 div neg,bbund 2 div neg,hgavl 2 div
neg){8}{3.8}{0.1}%forside
\psBox(lbund 2 div neg,bbund 2 div neg,Hgavl 2 div tyk sub){8}{0.1}{4}%top
\end{pspicture}
\end{document}

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


More information about the PSTricks mailing list