[pstricks] 3D surface on non rectangular domain

Manuel Luque mluque5130 at aol.com
Wed Mar 1 20:35:25 CET 2017


 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}








 

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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20170301/a45d9259/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EXPxy.png
Type: image/png
Size: 55757 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20170301/a45d9259/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EXPxy.png
Type: image/png
Size: 55757 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20170301/a45d9259/attachment-0003.png>


More information about the PSTricks mailing list