[pstricks] pst 3d

Poul Riis Poul.Riis at skolekom.dk
Sun Oct 22 00:04:35 CEST 2006


A few questions on the example below:

1) How can I rotate the texts 'arm1' and 'arm3' so that they are written
vertically (along the leads)?
2) The perspective of the text 'arm2' seems to my eyes be wrong. Why?
3) Apparently \textThreeDput does not accept greek letters. Is there an
alternative so that I can get a greek phi instead of just 'phi'?
4) Is there a way to use calculated coordinates in \pstThreeDLine -
similar to for instance \psline(!0 0)(!15 cos 15 sin)?
5) One of the lower lines of the lower yellow box shouldn't be dashed. How
can I control that?

Yours,
Poul Riis



\documentclass{article}
\usepackage{pst-V3D,pst-3dplot}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\input{cylindre_object.tex}

\def\Rectangle(#1,#2)(#3,#4){
newpath
#1 #2 moveto
#3 #2 lineto
#3 #4 lineto
#1 #4 lineto
 closepath }

\definecolor{bleupale}{rgb}{0.8 .8 1}

\pagestyle{empty}
\begin{document}
\begin{center}
\begin{pspicture*}(-5,-6)(8,4)
%\psframe(-5,-6)(8,4)
\psset{THETA=70,PHI=10,Dobs=60,Decran=40,dLight=1e9,Alpha=20,Beta=10}%Alpha=90-THETA,Beta=PHI
\psset[pst-V3D]{thetaLight=-70,phiLight=30,dLight=10000}%
\pstThreeDBox[fillstyle=solid,fillcolor=yellow](-1,1,-3.2)(2.0,0,0)(0,-4.5,0)(0,0,0.2)%
\pstThreeDBox[fillstyle=solid,fillcolor=yellow](-0.5,-2.8,-3)(1,0,0)(0,0.2,0)(0,0,3.25)%
\psCylindre[nF=48,nH=2,todraw=false,hsbcolor=0.05
0.5,interior=true,RotX=90](0,0,0){0.2}{4}%
\pstThreeDBox[fillstyle=solid,fillcolor=yellow](-0.5,0,-3)(1,0,0)(0,0.2,0)(0,0,3.25)%
\psCylindre[nF=48,nH=2,todraw=false,hsbcolor=0.05
0.5,interior=true,RotX=270](0,0.2,0){0.2}{1.5}%
\pstThreeDLine[linewidth=1pt,linecolor=green]{->}(0,6,-1)(0,6,1)%
\pstThreeDLine[linewidth=1pt,linecolor=green]{->}(1,6,0)(-1,6,0)%
\pstThreeDLine[linewidth=0.25pt,linecolor=green,linestyle=dashed]{-}(0,1.5,0)(0,6,0)%
\pstThreeDLine[linewidth=2pt,linecolor=red]{->}(-0.1,1,0.0866)(-1.5,1,2.598)(-1.5,6,2.598)(0,6,0)%
\pstThreeDLine[linewidth=2pt,linecolor=red]{->}(0,1,0.1)(0,1,3)(0,6,3)(0,6,0)%
\textThreeDput[normale=0 0,fontscale=0.5](0,0.2,2.5){arm 1}%
\textThreeDput[normale=0 0,fontscale=0.5](0,5.0,4.5){arm 2}%
\textThreeDput[normale=0 0,fontscale=0.5](0,9.25,2.5){arm 3}%
\psset{arrows=->, beginAngle=0, endAngle=180}
\pstThreeDCircle[linewidth=0.5pt,linecolor=blue](0,-1.5,0)(0.3,0,0)(0,0,0.3)
\psset{arrows=->, beginAngle=90, endAngle=120}
\pstThreeDCircle[linewidth=0.5pt,linecolor=red](0,6,0)(2,0,0)(0,0,2)
\textThreeDput[normale=0 90,fontscale=0.5](-1.5,6,2.75){phi}%
\end{pspicture*}
\end{center}
\end{document}

-------------- next part --------------


###########################################
Denne meddelelse med evt. vedlæg  er scannet af SkoleKom ved hjælp af F-Secure virusscanner.

For yderligere information,
http://forside.skolekom.dk/indhold/punkt1/viruspolitik


More information about the PSTricks mailing list