diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-03 23:15:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-03 23:15:13 +0000 |
commit | 459273b097e74fa6a8b49179febc2dc305704586 (patch) | |
tree | 364456c34c08cfd0160d7323f2ed6de8d0aed62b /Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex | |
parent | 0326f4eebc178d105108d65f263a6d220eb76f10 (diff) |
pst-solides3d (3mar17)
git-svn-id: svn://tug.org/texlive/trunk@43390 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex b/Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex index bf4e4923f00..8018632503f 100644 --- a/Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex +++ b/Master/texmf-dist/doc/generic/pst-solides3d/text/par-surfaces-en.tex @@ -3,6 +3,7 @@ The command has the following form: \begin{verbatim} \psSurface[options](xmin,ymin)(xmax,ymax){equation of the surface z=f(x,y)} +\psSurface*[options,r=...,xytranslate](xmin,ymin)(xmax,ymax){equation of the surface z=f(x,y)} \end{verbatim} with the same options which apply to solids, and these additional ones: @@ -21,6 +22,11 @@ ones: \item If \texttt{\Lkeyword{ngrid}=n}, with only one parameter value, the number of grids, or the incrementing steps, are identical on both axes. + \item \Lkeyword{r} defines the length of an origin vector (radius) which controls + the calculated points which must be inside the sphere, defined by the vector $\vec{r}$. + \item \Lkeyword{xytranslate}\verb|= x y| defines the translation of the vector in the + $x-y$-plane. + \end{itemize} \end{minipage} @@ -130,6 +136,80 @@ The grid lines are suppressed, when using in the option: \newpage +\section{Star version of \texttt{\textbackslash pstSurface}} + +\begin{lstlisting} +\psset{viewpoint=50 20 20 rtp2xyz,Decran=100,lightsrc=viewpoint} +\begin{pspicture}(-5,-4)(6,6) +\psSolid[object=grille,base=-2 2 -2 2,action=draw]% +\axesIIID(0,0,0)(2,2,1) +\psSurface*[ +fillcolor=cyan,r=1, +ngrid=.25 .25,incolor=yellow,grid, +algebraic](-1,-1)(1,1){ e^(x*y) } +\psSolid[object=cylindre,r=1,h=2,action=draw,ngrid=1 18] +\psPoint(0,0,1){O} +\psPoint(0,0,3){Z} +\psline{->}(O)(Z) +\uput[r](Z){$z$} +\psPoint(0.5,0.5,0){C} +\psdot[linecolor=red,dotstyle=x,dotscale=2](C) +\end{pspicture} +% +\begin{pspicture}(-5,-4)(6,10) +\psSolid[object=grille,base=-2 2 -2 2,action=draw]% +\axesIIID(0,0,0)(2,2,1) +\psSurface*[ +fillcolor=cyan,r=1,xytranslate=0.5 0.5, +ngrid=.25 .25,incolor=yellow,grid, +algebraic](-1,-1)(1,1){ e^(x*y) } +\psSolid[object=cylindre,r=1,h=4,action=draw,ngrid=1 18](0.5,0.5,0) +\psPoint(0,0,1){O} +\psPoint(0,0,5){Z} +\psline{->}(O)(Z) +\uput[r](Z){$z$} +\psPoint(0.5,0.5,0){C} +\psdot[linecolor=red,dotstyle=x,dotscale=2](C) +\end{pspicture} +\end{lstlisting} + +\begin{landscape} +\psset{viewpoint=50 20 20 rtp2xyz,Decran=100,lightsrc=viewpoint} +\begin{pspicture}(-5,-4)(6,6) +\psSolid[object=grille,base=-2 2 -2 2,action=draw]% +\axesIIID(0,0,0)(2,2,1) +\psSurface*[ +fillcolor=cyan,r=1, +ngrid=.25 .25,incolor=yellow,grid, +algebraic](-1,-1)(1,1){ e^(x*y) } +\psSolid[object=cylindre,r=1,h=2,action=draw,ngrid=1 18] +\psPoint(0,0,1){O} +\psPoint(0,0,3){Z} +\psline{->}(O)(Z) +\uput[r](Z){$z$} +\psPoint(0.5,0.5,0){C} +\psdot[linecolor=red,dotstyle=x,dotscale=2](C) +\end{pspicture} +% +\begin{pspicture}(-5,-4)(6,10) +\psSolid[object=grille,base=-2 2 -2 2,action=draw]% +\axesIIID(0,0,0)(2,2,1) +\psSurface*[ +fillcolor=cyan,r=1,xytranslate=0.5 0.5, +ngrid=.25 .25,incolor=yellow,grid, +algebraic](-1,-1)(1,1){ e^(x*y) } +\psSolid[object=cylindre,r=1,h=4,action=draw,ngrid=1 18](0.5,0.5,0) +\psPoint(0,0,1){O} +\psPoint(0,0,5){Z} +\psline{->}(O)(Z) +\uput[r](Z){$z$} +\psPoint(0.5,0.5,0){C} +\psdot[linecolor=red,dotstyle=x,dotscale=2](C) +\end{pspicture} +\end{landscape} + + + \section{Example 4: a \Index{sinusoidal wave}} \begin{LTXexample}[width=7.5cm] \psset{unit=0.35} |