Offset or buffers



First of all, very excited about SVG and very positive about all the great
(very clever) people contributing to the Firefox support particularly since
the announcement of the withdrawal of the Adobe plug-in. It seems especially
relevant that Internet Explorer doesn't appear to offer any sign of taking
on board SVG natively.


We're doing various bits with SVG but really just using the existing tools.
I wondered whether anyone has already worked on a function which would
create a shape offset by a set distance from an initial polygon. The
particular example I have in mind is the intention of creating a 'buffer'
around a line - in the real world this might be to illustrate all items with
in 1 kilometre of the outline of an industrial estate.


I couldn't see anything immediately obvious in the info pages (sorry if I've
missed an 'offset' command) and whilst I think I can mathematically generate
the line to include semi round lines around corners, I'm sure that a built
in command will be far more efficient and elegant in its design.


Any feedback would be greatly received.


Kind Regards




Andrew Terry



Tel: +44 (0)1886 832 972 |  Fax: +44 (0)1886 833 485 |


Brockamin House, Leigh, Worcester, WR6 5JU


Received on Friday, 15 December 2006 07:59:04 UTC