From: <jpi...@us...> - 2011-11-02 01:34:05
|
Revision: 8920 http://octave.svn.sourceforge.net/octave/?rev=8920&view=rev Author: jpicarbajal Date: 2011-11-02 01:33:59 +0000 (Wed, 02 Nov 2011) Log Message: ----------- geometry. Loading problems Modified Paths: -------------- trunk/octave-forge/main/geometry/inst/io/@svg/svg.m trunk/octave-forge/main/geometry/inst/io/data2geo.m Modified: trunk/octave-forge/main/geometry/inst/io/@svg/svg.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/@svg/svg.m 2011-11-02 01:22:39 UTC (rev 8919) +++ trunk/octave-forge/main/geometry/inst/io/@svg/svg.m 2011-11-02 01:33:59 UTC (rev 8920) @@ -45,6 +45,10 @@ svg = class (svg, 'svg'); if !isempty (name) + name + if ~exist(name,'file') + error("svg:BadArguemnt", "File %s doesn't exist",name); + end paths = loadpaths(svg, name); svg.Path = paths; data = loadsvgdata(svg, name); @@ -58,17 +62,17 @@ endfunction %!test -%! dc = svg('drawing5.svg'); +%! dc = svg('../drawing5.svg'); %! dc.getpath() %! dc.pathid %! dc.getpath('path3756') %! -%! dc = svg('drawing.svg'); +%! dc = svg('../drawing.svg'); %! ids = dc.pathid; %! dc.getpath({ids{[1 3]}}) %!test -%! dc = svg('drawing6.svg'); +%! dc = svg('../drawing6.svg'); %! ids = dc.pathid; %! P = dc.path2polygon(ids{1}); Modified: trunk/octave-forge/main/geometry/inst/io/data2geo.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/data2geo.m 2011-11-02 01:22:39 UTC (rev 8919) +++ trunk/octave-forge/main/geometry/inst/io/data2geo.m 2011-11-02 01:33:59 UTC (rev 8920) @@ -92,7 +92,7 @@ %! disp(strFile) %!demo -%! dc = svg('drawing6.svg'); +%! dc = svg('../drawing6.svg'); %! ids = dc.pathid; %! P = dc.path2polygon(ids{1},12); %! filename = tmpnam (); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |