[CpmlSegment] Implemented a decent offseting curve algorithmmob
commit97f03feeee26abbbfb5fddd381cf3a29d4418366
authorNicola Fontana <ntd@entidi.it>
Sat, 21 Feb 2009 10:04:24 +0000 (21 11:04 +0100)
committerNicola Fontana <ntd@entidi.it>
Sat, 21 Feb 2009 10:04:24 +0000 (21 11:04 +0100)
tree068c1e5a63a4ca5742db415e65504e6faa3818b3
parenta78099c7989a0a04233374c2a15ee9bb41f3cc2b
[CpmlSegment] Implemented a decent offseting curve algorithm

Rewrote almost from scratch the curve_offset() function in
cpml-segment.c: see the function comments for a detailed
description of the approach used to offset the Bézier curve.

Improved cpml-demo.c to provide more useful curve samples to
check the quality of the offseting algorithm.
cpml/cpml-segment.c
demo/cpml-test.c