Re: Help on Bezier curves



On Fri, 13 Dec 2002, Christophe Ponsard wrote:

Could anyone point me to some ref/example on how to program
a Bezier curve, especially wrt to the use of BezPoint in the fill_bezier
and draw_bezier function of the diarenderer ?
(I am trying to render "cloud" figure ;-)

It's a bit funky.  There's some explanation in lib/geometry.h, and a
generic implementation using lines in lib/diarenderer.c.  To create a new
bezier object, look at the example in plug-ins/xfig/xfig-import.c, which
creates a bezier curve from xfig format.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]