[AdgPath] Added API to access last and over primitives
commit2c834cb92f490610b4092d1ee911c1b198f8ee07
authorNicola Fontana <ntd@entidi.it>
Fri, 16 Oct 2009 12:39:09 +0000 (16 14:39 +0200)
committerNicola Fontana <ntd@entidi.it>
Fri, 16 Oct 2009 12:39:09 +0000 (16 14:39 +0200)
tree51fbc82e4c73fb88ddbc4e2459c76d75bdc45f78
parentf8b93894e933277bc3edd9ead9204d3a99288865
[AdgPath] Added API to access last and over primitives

Implemented adg_path_last_primitive() and adg_path_over_primitive() to
get respectively the last and the previous the last primitives appended
to an AdgPath. Modified the code accordling and let the default append
method (adg_path_append()) do his job also when adding the result of an
operation (such as a line for chamfers and an arc for fillets).

The adg_path_over_primitive() is especially useful to access the
primitive added by the forementioned operations. The _last version has
been added only for completness.
adg/adg-path-private.h
adg/adg-path.c
adg/adg-path.h