On 3-9-2014 11:50, Tavmjong Bah wrote:
On Tue, 2014-08-26 at 21:56 +0200, Johan Engelen wrote:
Hi Tav, Very quick reply. Powerstroke does/should do path offsetting. You can visualize that by displaying the stroke of the generated path instead of filling it. In the attached example, you can see what happens. For some offsets, troubles arise that I do not know how to solve (as a human).
The trouble you point out in the sample SVG can be solved by doing path intersections (think fill-rule non-zero). A more interesting problems is when the handle for an end node is on the "wrong" side.
So what you want is just Powerstroke's behavior? (rounded joins, butt ends)
BTW, Gravit has path inset/offset:
The code has been open-sourced:
http://libregraphicsworld.org/blog/entry/quasado-opensources-gravit-web-base...
I don't agree with the results that Gravit produces... (path inside/outside produces weird results at the path's end)
cheers, Johan