Re: Path Representation In Qahirah

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Thu, 26 Mar 2015 01:12:13 +0100, Krzysztof Kosiński wrote:

> 2015-03-24 23:09 GMT+01:00 Lawrence D'Oliveiro
> <[email protected]>:
>
>> 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.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.