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? _______________________________________________ Dia-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.lysator.liu.se/~alla/dia/faq.html Main page at http://www.lysator.liu.se/~alla/dia
