1 # Created by Octave 3.6.2, Sun Jun 10 09:53:40 2012 UTC <root@brouzouf>
13 # name: <cell-element>
17 -- Function File: SVG = loadSVG (FILENAME)
18 Reads the plain SVG file FILENAME and returns an SVG structure.
20 In the current version only SVG path elements are parsed and
21 stored in the field path of the SVG structure. The coordinates of
22 the path are not modified in anyway. This produces the path to be
23 ploted vertically reflected.
25 See also: svgnormalize, svgpath2polygon
31 # name: <cell-element>
35 Reads the plain SVG file FILENAME and returns an SVG structure.
39 # name: <cell-element>
46 # name: <cell-element>
50 -- Function File: SVGN = loadSVG (SVG)
51 Scales and reflects the SVG structure and returns a modified SVGN
54 The height and width of the SVG are scaled such that the diagonal
55 of the bounding box has length 1. Coordinates are trasnfomed such
56 that a plot of the paths coincides with the visualization of the
59 See also: svgload, svgpath2polygon
65 # name: <cell-element>
69 Scales and reflects the SVG structure and returns a modified SVGN
74 # name: <cell-element>
81 # name: <cell-element>
85 -- Function File: P = svgpath2polygon (SVGPATH)
86 Converts the SVG path structure SVGPATH to an array of polygons
87 compatible with the geometry package and matGeom
88 (`http://matgeom.sf.net').
90 SVGPATH is a substructure of the SVG structure output by loadSVG.
91 This function extracts the field named "coord" if there is only
92 one path. If there are more than oe path it puts the "coord" field
93 of each path in the same array, separated by nans.
95 See also: svgnormalize, svgload
101 # name: <cell-element>
105 Converts the SVG path structure SVGPATH to an array of polygons