Changes

Jump to navigation Jump to search

Geometry package

52 bytes added, 10:02, 2 April 2012
m
<!-- <syntaxhighlight lang="matlab"> -->
{{Code|Loading the file as polygon compatible with geometry package|{{SyntaxHighlight|<nowiki><syntaxhighlight lineoctavesvg =svg ("GESHI_FANCY_LINE_NUMBERSoctave.svg" lang).normalize();ids ="matlab" styleoctavesvg.pathid();P ="fontoctavesvg.path2polygon (ids{1}, 12)(1:end-size1,:13px"></nowiki>);P = bsxfun (@minus, P, centroid (P));{{{1}}}<nowiki></syntaxhighlight></nowiki>   
}}
Now we have our SVG as a polygon compatible with the Geometry package format. You can plot the polygon using the function {{Codeline|drawPolygon}}.
652

edits

Navigation menu