1 \section{Drawing a
\Index{line
}}
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
}.
}
7 We use
\texttt{\textbackslash psLineIIID
[options
](x0,y0,z0)(x1,y1,z1)
\ldots(xn,yn,zn)
},
8 with the following possible options:
10 \item \texttt{\Lkeyword{linecolor
}=colour
};
11 \item \texttt{\Lkeyword{doubleline
}=true
};
12 \item \texttt{\Lkeyword{linearc
}=value
}.
14 It is not possible to put arrowheads at the ends of the lines.
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)