Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc-en / .svn / text-base / par-ligne3D-en.tex.svn-base
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 \footnote{\url{http://tug.ctan.org/tex-archive/graphics/pstricks/contrib/pst-3dplot}.}
6
7 We use \texttt{\textbackslash psLineIIID[options](x0,y0,z0)(x1,y1,z1)\ldots(xn,yn,zn)},
8 with the following possible options:
9 \begin{itemize}
10   \item \texttt{\Lkeyword{linecolor}=colour};
11   \item \texttt{\Lkeyword{doubleline}=true};
12   \item \texttt{\Lkeyword{linearc}=value}.
13 \end{itemize}
14 It is not possible to put arrowheads at the ends of the lines.
15
16 \begin{LTXexample}[width=6.5cm]
17 \psset{viewpoint=50 20 30 rtp2xyz,Decran=50}
18 \begin{pspicture}(-3,-4)(4,4)
19 \psSolid[object=cube,a=4,action=draw*,
20   fillcolor=magenta!20]%
21 \psLineIIID[linecolor=blue,
22   linewidth=0.1,linearc=0.5,
23   doubleline=true](-2,-2,-2)(2,2,2)(2,2,-2)(2,-2,0)
24 \psPoint(2,-2,0){A}\psPoint(-2,-2,-2){B}
25 \psPoint(2,2,2){C}\psPoint(2,2,-2){D}
26 \psdot[dotsize=0.2](A)\psdot[dotsize=0.2](B)
27 \psdot[dotsize=0.2](C)\psdot[dotsize=0.2](D)
28 \psLineIIID[linecolor=green]%
29   (-2,-2,-2)(2,2,2)(2,2,-2)(2,-2,0)
30 \psPolygonIIID[linecolor=red,
31   fillstyle=vlines,linearc=0.5,
32   linewidth=0.1](-2,-2,2)(-2,2,2)(2,2,2)(2,-2,2)
33 \axesIIID(2,2,2)(4,4,4)
34 \end{pspicture}
35 \end{LTXexample}
36
37
38 \endinput

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.