[cairo] Path Representation In Qahirah
ldo at geek-central.gen.nz
Wed Mar 25 17:31:40 PDT 2015
On Thu, 26 Mar 2015 01:12:13 +0100, Krzysztof Kosiński wrote:
> 2015-03-24 23:09 GMT+01:00 Lawrence D'Oliveiro
> <ldo at geek-central.gen.nz>:
>> So I have changed the internal representation I use. This is now a
>> sequence of Segments, each of which is a sequence of Points,
>> together with an open/closed indication for the Segment. Each Point
>> has a coordinate Vector, together with an on-curve/off-curve flag.
>> Two successive on-curve points produce a straight line; a single
>> off-curve point in-between defines a quadratic Bézier, while two
>> off-curve points in-between make for a cubic Bézier. Each Segment
>> must begin and end with an on-curve Point.
> You may find this approach hard to generalize to elliptical arcs, as
> encountered in SVG.
I only need to represent what Cairo can put in a path. And that is just
straight lines and cubic Béziers, nothing more.
More information about the cairo