Debian Codegraph @

texmf-dist/doc/generic/pst-solides3d/text/par-ligne3D-en.tex

raw
1 \section{Drawing a \Index{line}}
2
3 This command is adapted from the macro \verb+\pstThreeDLine+ from the package
4 \texttt{pst-3dplot} of Herbert \textsc{Voss}.
5
6 We use \texttt{\textbackslash psLineIIID[options](x0,y0,z0)(x1,y1,z1)\ldots(xn,yn,zn)},
7 with the following possible options:
8 \begin{itemize}
9 \item \texttt{\Lkeyword{linecolor}=colour};
10 \item \texttt{\Lkeyword{doubleline}=true};
11 \item \texttt{\Lkeyword{linearc}=value}.
12 \end{itemize}
13 It is not possible to put arrowheads at the ends of the lines.
14
15 \begin{LTXexample}[width=6.5cm]
16 \psset{viewpoint=50 20 30 rtp2xyz,Decran=50}
17 \begin{pspicture}(-3,-4)(4,4)
18 \psSolid[object=cube,a=4,action=draw*,
19 fillcolor=magenta!20]%
20 \psLineIIID[linecolor=blue,
21 linewidth=0.1,linearc=0.5,
22 doubleline=true](-2,-2,-2)(2,2,2)(2,2,-2)(2,-2,0)
23 \psPoint(2,-2,0){A}\psPoint(-2,-2,-2){B}
24 \psPoint(2,2,2){C}\psPoint(2,2,-2){D}
25 \psdot[dotsize=0.2](A)\psdot[dotsize=0.2](B)
26 \psdot[dotsize=0.2](C)\psdot[dotsize=0.2](D)
27 \psLineIIID[linecolor=green]%
28 (-2,-2,-2)(2,2,2)(2,2,-2)(2,-2,0)
29 \psPolygonIIID[linecolor=red,
30 fillstyle=vlines,linearc=0.5,
31 linewidth=0.1](-2,-2,2)(-2,2,2)(2,2,2)(2,-2,2)
32 \axesIIID(2,2,2)(4,4,4)
33 \end{pspicture}
34 \end{LTXexample}
35
36
37 \endinput