[AdgPath] Refactored AdgPath to support arc primitives
commit9b7075b1ccaaced6e96cc85059e59cfdc0afdcbd
authorNicola Fontana <ntd@entidi.it>
Mon, 15 Jun 2009 20:48:19 +0000 (15 22:48 +0200)
committerNicola Fontana <ntd@entidi.it>
Mon, 15 Jun 2009 20:48:19 +0000 (15 22:48 +0200)
treed8689e592581ce0159c70fcf79d9769450b22855
parent2e640c72147dd99810ed7849061abe554d9e93dd
[AdgPath] Refactored AdgPath to support arc primitives

Implemented Bézier curve approximation of arcs during
adg_path_get_cairo_path() and reworked the clear operation of the
internal cairo path struct to avoid code duplication.

The curve approximation is using an harcoded value as max angle
(PI/2): it is planned to implement a property providing this value.
adg/adg-path-private.h
adg/adg-path.c