Home > matGeom > setupMatGeom.m

setupMatGeom

PURPOSE ^

SETUPMATGEOM Add the different directories of MatGeom to the path.

SYNOPSIS ^

function setupMatGeom(varargin)

DESCRIPTION ^

SETUPMATGEOM Add the different directories of MatGeom to the path.

   Usage:
   setupMatGeom;

   Example
   setupMatGeom;



 ------
 Author: David Legland
 e-mail: david.legland@grignon.inra.fr
 Created: 2011-01-11,    using Matlab 7.9.0.529 (R2009b)
 Copyright 2011 INRA - Cepia Software Platform.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function setupMatGeom(varargin)
0002 %SETUPMATGEOM Add the different directories of MatGeom to the path.
0003 %
0004 %   Usage:
0005 %   setupMatGeom;
0006 %
0007 %   Example
0008 %   setupMatGeom;
0009 %
0010 %
0011 %
0012 % ------
0013 % Author: David Legland
0014 % e-mail: david.legland@grignon.inra.fr
0015 % Created: 2011-01-11,    using Matlab 7.9.0.529 (R2009b)
0016 % Copyright 2011 INRA - Cepia Software Platform.
0017 
0018 % extract library path
0019 fileName = mfilename('fullpath');
0020 libDir = fileparts(fileName);
0021 
0022 moduleNames = {...
0023     'geom2d', ...
0024     'polygons2d', ...
0025     'geom3d', ...
0026     'meshes3d', ...
0027     'utils'};
0028 
0029 disp('Installing MatGeom Library');
0030 addpath(libDir);
0031 
0032 % add all library modules
0033 for i = 1:length(moduleNames)
0034     name = moduleNames{i};
0035     fprintf('Adding module: %-20s', name);
0036     addpath(fullfile(libDir, name));
0037     disp(' (ok)');
0038 end
0039

Generated on Wed 16-Feb-2022 15:10:47 by m2html © 2003-2019