Import of SVG paths.
commit84d99c63c95a71d51c530c375dfe08015a8f8142
authorHenrik Tidefelt <tidefelt@isy.liu.se>
Thu, 6 Nov 2008 15:05:09 +0000 (6 16:05 +0100)
committerHenrik Tidefelt <tidefelt@isy.liu.se>
Fri, 7 Nov 2008 00:27:45 +0000 (7 01:27 +0100)
tree69c0337a35c7397a3b7af4f1bf6a6b8a6d5ccc47
parent2bb93ca0c0fb6e07f0561421cf88f3128556269c
Import of SVG paths.

The function <svg_path> takes the <d> string of an SVG <path> element, and interprets it using scaling only.  A more complete approach would also compute a shift, but this would be much more cumbersome to use for simple applications.  Please refer to the documentation of <svg_path> for some more details on this.

<svg_path> may not be extremely robust to errors in input data, but some measures are taken.

The result may either be a Path or a MultiPath value, depending on the number of sub-paths in the stirng.  Singleton paths may be disregarded.
doc/parts/bindings/functions.sxml
examples/features/svg_path.shape [new file with mode: 0644]
source/coreconstruct.cc