[pstricks] Fwd: Bezier curve

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Aug 16 21:28:11 CEST 2005


MLuque5130 at aol.com wrote:
> Ravi Gautam wrote:
> 
>  >I need to draw Bezier curves in three dimension. Please let me know if
>  >any body know the commands for it. Also is there any command similar
>  >to parametric plot for 3D. 
> 
> One can also easily draw 3D curves: parametric, bezier or other with the 
> the package pst-3D. In this package, there is a macro (tx at ProjThreeD), 
> writen by Timothy Van Zandt (the author),  which, as far i can see, have 
> been never used. This macro allows to  put a point in 3 coordinates. To 
> increase the possibility, i have use it in association with  pst-node in 
> the aim to make a command simpler to use.

[ ... ]

> \begin{pspicture}(-5,-8)(5,10)
> \def\vx{1}\def\vy{0.5}\def\vz{0.5}
> \psset{viewpoint={\vx} {\vy} {\vz}}%
> \pnodeThreeD(0,0,0){O}
> \pnodeThreeD(0,0,10){Z}
> \pnodeThreeD(7,0,0){X}
> \pnodeThreeD(0,7,0){Y}
> \psline{->}(O)(X)
> \psline{->}(O)(Z)
> \psline{->}(O)(Y)
> \uput[180](Z){$z$}
> \uput[0](X){$x$}
> \uput[0](Y){$y$}
> \pnodeThreeD(4,0,0){A}
> \pnodeThreeD(4,4,0){B}
> \pnodeThreeD(4,4,4){C}
> \pnodeThreeD(0,0,4){D}
> \psbezier[linewidth=1mm,linecolor=red,showpoints=true]{|->}(A)(B)(C)(D)

but this is a 2d bezier curve, which may be similiar to the
3d one, but not the same. And could also be done with your
pst-vue3d or with pst-3dplot which both have a 3d-node macro.

Herbert




More information about the PSTricks mailing list