[pstricks] pst-solides3d psSurface
Olivier Torres
olivier.torres at univ-lille3.fr
Tue May 31 10:41:44 CEST 2011
Le 31/05/2011 08:54, Herbert Voss a écrit :
> Am 30.05.2011 18:32, schrieb Leon Free:
>
>> i'd like to use the projection+intersection facilities included in
>> pst-solides3d. i started plotting a 3d function z=f(x,y) (see attached
>> tex source).
>>
>> while \psplotThreeD from pst-3dplot works fine, the \psSurface macro
>> from pst-solides3d fails.
>
> [ ... ]
>
>> all i can guess is that a ./0 division occurs at some point. but i cant
>> debug it further. does anybody know what's wrong ?
>
> \psSurface[ngrid=.25 .25,
> algebraic](-1,-1)(1,1){(1+x)^2+2*y^2-0.4*x*y+0.2}
>
> the x-y range is given by (xMin,yMin)(xMax,yMax). You had
> (xMin,xMax)(yMin,yMax) which is wrong.
>
thanks!
> By the way: using the algebraic option, makes live easier
this was my fisrt attempt. but i turned to rpn because it is more
"robust" in some instances. ex. if you want to plot f(x,y), x in (a,b),
y in (c,d), where a=a(b) and c=c(d), you may use rpn to define a and c,
whereas infix notation fails. for instance (stupid example):
\psplotThreeD[algebraic,drawStyle=xyLines,xPlotpoints=40]%
(-2,1)(-1.5,.5){.4*((x+1)^2+2*y^2)+.2}
\psplotThreeD[algebraic,drawStyle=xyLines,xPlotpoints=40]%
(1 2 mul neg,1)(.5 3 mul neg,.5){.4*((x+1)^2+2*y^2)+.2}
work fine (and produce the same plot) whereas this fails (even with
\psset{algebraic}:
\psplotThreeD[algebraic,drawStyle=xyLines,xPlotpoints=40]%
(-1*2,1)(-.5*35){.4*((x+1)^2+2*y^2)+.2}
> and please subscribe to the list, if you want to be sure to
> get all answers.
>
??? i suscribed to the list a while ago (2010)
i get most of the posts (not all: i didnt get manuel's reply in this thread)
lf
More information about the PSTricks
mailing list