Why not an algorithm based on what the Cross-smooth filter does, like in this svg example ?
This filter is based on Gaussian blur.
ivan
Le 03/09/14 11:50, Tavmjong Bah a écrit :
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.
BTW, Gravit has path inset/offset:
The code has been open-sourced:
http://libregraphicsworld.org/blog/entry/quasado-opensources-gravit-web-base...
Tav
Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel