[pstricks] I need a little help

Leon Free leon.free at free.fr
Wed Dec 19 07:05:36 CET 2012


Sorry, this is not a parametric plot. Try to put this inside you
pspicture environment (replace x_0=y_0 by 2 and x_1=y_1 by 4 or any
value you wish) :


\defFunction[algebraic]%
{greencurve}(t)
{u}%
{y_0+(u-x_0)*(y_1-y_0)/(x_1-x_0)}%
{-((u-4)^2+((y_0+(u-x_0)*(y_1-y_0)/(x_1-x_0))-4)^2)*0.2+10}

\psSolid[object=courbe,r=0,
range=x_0 x_1,
linecolor=green,
resolution=360,
function=greencurve]%
}


LF

Le 19/12/2012 06:46, Leon Free a écrit :
> Le 18/12/2012 23:12, Cyrille Piatecki a écrit :
>>
>> 4) How to construct really the green curve on the curvature of the curev ?
>> Thanks to anybody who could help me.
>>
> 
> I'm not sure what this curve is. If you project this green line on the
> (x,y) plane, would you get a straight line trough (x_0,y_0) and
> (x_1,y_1) ? If yes, use a parametric plot (see pst-solides3d doc which
> includes examples on how to do that) with
> u varying in (x_0,x_1)
> v=y_0+(u-x_0)*(y_1-y_0)/(x_1-x_0)
> w=-((u-4)^2+(v-4)^2)*0.2+10
> 
> LF
> 



More information about the PSTricks mailing list