From: <jpi...@us...> - 2011-11-02 02:04:40
|
Revision: 8924 http://octave.svn.sourceforge.net/octave/?rev=8924&view=rev Author: jpicarbajal Date: 2011-11-02 02:04:33 +0000 (Wed, 02 Nov 2011) Log Message: ----------- geometry. Clean up re-final Modified Paths: -------------- trunk/octave-forge/main/geometry/inst/io/@svg/getpath.m trunk/octave-forge/main/geometry/inst/io/@svg/normalize.m trunk/octave-forge/main/geometry/inst/io/@svg/path2polygon.m trunk/octave-forge/main/geometry/inst/io/@svg/plot.m trunk/octave-forge/main/geometry/inst/io/@svg/svg.m Modified: trunk/octave-forge/main/geometry/inst/io/@svg/getpath.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/@svg/getpath.m 2011-11-02 01:58:58 UTC (rev 8923) +++ trunk/octave-forge/main/geometry/inst/io/@svg/getpath.m 2011-11-02 02:04:33 UTC (rev 8924) @@ -15,7 +15,9 @@ ## along with this program; if not, see <http://www.gnu.org/licenses/>. ## -*- texinfo -*- -## @deftypefn {Function File} {} function_name () +## @deftypefn {Function File} {@var{paths} = } getpath (@var{ids}) +## Returns paths in @var{ids}. +## ## @end deftypefn function paths = getpath(obj, ids={}) Modified: trunk/octave-forge/main/geometry/inst/io/@svg/normalize.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/@svg/normalize.m 2011-11-02 01:58:58 UTC (rev 8923) +++ trunk/octave-forge/main/geometry/inst/io/@svg/normalize.m 2011-11-02 02:04:33 UTC (rev 8924) @@ -14,15 +14,8 @@ %% along with this program. If not, see <http://www.gnu.org/licenses/>. %% -*- texinfo -*- -%% @deftypefn {Function File} @var{SVGn} = loadSVG (@var{SVG}) -%% Scales and reflects the @var{SVG} structure and returns a modified @var{SVGn} -%% structure. -%% -%% The height and width of the SVG are scaled such that the diagonal of the -%% bounding box has length 1. Coordinates are trasnfomed such that a plot of the -%% paths coincides with the visualization of the original SVG. -%% -%% @seealso{svgload, svgpath2polygon} +%% @deftypefn {Function File} @var{SVGn} = normalize (@var{SVG}) +%% TODO: normalizes and SVG. %% @end deftypefn function SVGn = normalize (obj) Modified: trunk/octave-forge/main/geometry/inst/io/@svg/path2polygon.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/@svg/path2polygon.m 2011-11-02 01:58:58 UTC (rev 8923) +++ trunk/octave-forge/main/geometry/inst/io/@svg/path2polygon.m 2011-11-02 02:04:33 UTC (rev 8924) @@ -15,8 +15,7 @@ %% -*- texinfo -*- %% @deftypefn {Function File} @var{P} = path2polygon (@var{id}) -%% Converts the SVG path to an array of polygons -%% compatible with the geometry package and matGeom (@url{http://matgeom.sf.net}). +%% Converts the SVG path to an array of polygons. %% %% @end deftypefn Modified: trunk/octave-forge/main/geometry/inst/io/@svg/plot.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/@svg/plot.m 2011-11-02 01:58:58 UTC (rev 8923) +++ trunk/octave-forge/main/geometry/inst/io/@svg/plot.m 2011-11-02 02:04:33 UTC (rev 8924) @@ -14,6 +14,11 @@ ## You should have received a copy of the GNU General Public License ## along with this program; if not, see <http://www.gnu.org/licenses/>. +%% -*- texinfo -*- +%% @deftypefn {Function File} {@var{h} = } plot () +%% Plots and SVG object. +%% +%% @end deftypefn function h = plot(obj, varargin) 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:58:58 UTC (rev 8923) +++ trunk/octave-forge/main/geometry/inst/io/@svg/svg.m 2011-11-02 02:04:33 UTC (rev 8924) @@ -17,7 +17,7 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {@var{obj} =} svg () ## @deftypefnx {Function File} {@var{obj} =} svg (@var{str}) -## Create object @var{obj} of the svn class. +## Create object of the svg class. ## ## If no input argument is provided the object is empty. @var{str} can be a filename ## or a string defining an inline SVG. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |