Changes

Jump to navigation Jump to search
65 bytes added ,  12:38, 30 March 2012
m
<!-- <syntaxhighlight lang="matlab"> -->
{{Code|Loading the file as polygon compatible with geometry package|<presyntaxhighlight line="GESHI_FANCY_LINE_NUMBERS" lang="C">
octavesvg = svg ("octave.svg").normalize();
ids = octavesvg.pathid();
P = octavesvg.path2polygon (ids{1}, 12)(1:end-1,:);
P = bsxfun (@minus, P, centroid (P));
</presyntaxhighlight>}}
Now we have our SVG as a polygon compatible with the Geometry package format. You can plot the polygon using the function {{Codeline|drawPolygon}}.
{{Code|Plotting a polygon compatible with geometry package|<pre>
656

edits

Navigation menu