Geometry package: Difference between revisions

(using the Forge and Codeline templates)
Line 20: Line 20:
<!-- <syntaxhighlight lang="matlab"> -->
<!-- <syntaxhighlight lang="matlab"> -->
{{Code|Loading the file as polygon compatible with geometry package|<pre>
{{Code|Loading the file as polygon compatible with geometry package|<pre>
octavesvg = svg ("octave.svg");
octavesvg = svg ("octave.svg").normalize();
ids      = octavesvg.pathid();
ids      = octavesvg.pathid();
P        = octavesvg.path2polygon (ids{1}, 12)(1:end-1,:);
P        = octavesvg.path2polygon (ids{1}, 12)(1:end-1,:);
657

edits