# [pstricks] 3D surface on non rectangular domain

leon.free at free.fr leon.free at free.fr
Wed Mar 1 21:34:51 CET 2017

Thank you Manuel. Yes, this is close to what I'd like to do. I did not know about the r parameter for \psSurface* (I could not find it in the pst-solides3d doc). It seems it controls the radius of the domain (ball) on which the surface is drawn. Are there some extra parameters that control the center of the ball? Moreover, when using r=1 how does this interact with the plotting range (xmin,ymin)(xmax,ymax)? Working with your example, the range seems to have no effect on the plot (I even used (0,0)(0,0) instead of (-1,-1)(1,1)).
elef

----- Mail original -----
De: "Manuel Luque" <mluque5130 at aol.com>
À: pstricks at tug.org
Envoyé: Mercredi 1 Mars 2017 20:35:25
Objet: Re: [pstricks] 3D surface on non rectangular domain

I do not know if I understood your question correctly. Here, the domain is restricted to R (x, y) <1

\documentclass{article}
\usepackage{pst-solides3d}
\begin{document}
\begin{center}
\begin{pspicture}(-5,-4)(6,10)
\psframe(-5,-4)(6,10)
\psset{viewpoint=50 30 30 rtp2xyz,Decran=200,lightsrc=viewpoint}
\psSolid[object=grille,base=-1 1 -1 1,action=draw]%
\axesIIID(0,0,0)(2,2,1)
\psSurface*[
fillcolor=cyan,
r=1,
ngrid=.5 .5,incolor=yellow,grid](-1,-1)(1,1){%
Euler x y mul exp }
\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$}
\end{pspicture}
\end{center}
\end{document}

EXPxy.png

Manuel Luque

-----E-mail d'origine-----
De : leon.free <leon.free at free.fr>
A: pstricks <pstricks at tug.org>
Envoyé le : Me, 1 Mar 2017 15:08
Sujet : [pstricks] 3D surface on non rectangular domain

Hi,
I'd like to plot the surface of a function such as exp(x*y) only for the (x,y)'s in the unit ball B = \{(x,y) \in \mathbb{R}^2 : x^2+y^2 \le 1\}. I do not want to set the value of the function outside B to some particular value (e.g. 0). Do you know if there exists some pstricks package that can make this ?
Thanks,
elef
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/