[cairo] Clipper for Cairo

Angus Johnson angus at internode.on.net
Wed Nov 3 20:15:41 PDT 2010


On 4/11/2010 1:43 PM, Petr Kobalíček wrote:
> Hi Angus,
>
> nice work and license ;-)

Thanks :).

> I'm thinking how to extend your algorithm to support also quadric and
> cubic bezier curves. I have some ideas for initial implementation, but
> I don't know if it's robust. The first idea is to subdivide curves
> into lines (there is needed to keep information about the lines to
> know which line belongs to which curve) and after clipped is done the
> lines can be converted back to curves (using the clipped or full
> [0,1]t interval).

I already have fully implemented quadratic and cubic bezier clipping 
here (but only in Delphi so far):
http://www.angusj.com/delphi/clipper_v3_beta.zip



More information about the cairo mailing list