[pstricks] pst-3dplot
Christoph Bersch
usenet at bersch.net
Fri Jul 4 12:04:53 CEST 2008
camus.philippe at free.fr schrieb:
>
> \pspicture(-5,-5)(5,5)
> \psset{Alpha=150,Beta=40}
> \pstThreeDCoor[xMin=0,xMax=4,yMin=0,yMax=4,zMin=0,zMax=4]
> \def\al{60}\def\be{130} %just because I can't use \Alpha and \Beta !
> \FPeval{a}{cos(\be)*sin(\al)}
> \FPeval{b}{cos(\be)*cos(\al)}
> \FPeval{c}{sin(\be)}
>
> \pstThreeDLine(\a,\b,\c)(0,0,0)
>
> \endpspicture
>
> I expect that the 3DLine is reduced to a point (the origin).
I don't known why you expect this. \a \b and \c each contain a number
(which are all != 0 for your angles), so you plot a line from the point
specified by theses coordinates to the origin.
Christoph
More information about the PSTricks
mailing list