On 27 Mar 2000, Lars Clausen wrote:

> On Sun, 26 Mar 2000, [EMAIL PROTECTED] wrote:
> 
> > On 16 Mar 2000, Lars Clausen wrote:
> > 
> >> 
> >> Below is a patch that does a quick hack at filling polylines and
> >> beziers.  I'm thinking of how to do a closed line correctly, and I think
> >> I'm getting the right idea.  Input is welcome.
> > 
> > I dunno about this. The polyline and bezier objects are basically line
> > objects. Filling them seems strange. I can see the need for filled
> > polygon and filled bezier curve objects though.
> > 
> > Filling stuff is complex though, you have to specify winding rules etc.
> 
> I do?  I was hoping the fill_polygon and fill_bezier would take care of
> those things for me.

Well, the thing is that the renderer interface currently doesn't have a
full definition for complex (self-intersecting) polygons. It works, but
I'm not sure for instance if all current renderer implementations give the
same result.

X for instance has two filling rules for polygon "EvenOddRule" and
"WindingRule" (check the manpage for XSetFillRule). I don't know which is
default. libart uses the winding rule I think...

One should really specify these details before going on.

/ Alex


Reply via email to