From 3276485c96636cd38248908ff3575282654ff335 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 12 Dec 2018 14:45:38 +0100 Subject: Reorganize functions into packages/private functions This also replaces modifying the path with a request to the user to modify the path. --- matlab/tools/astra_plot_geom.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'matlab/tools') diff --git a/matlab/tools/astra_plot_geom.m b/matlab/tools/astra_plot_geom.m index 3a654fd..62eed79 100644 --- a/matlab/tools/astra_plot_geom.m +++ b/matlab/tools/astra_plot_geom.m @@ -64,14 +64,16 @@ function [] = astra_plot_geom(geometry, varargin) % Contact: astra@astra-toolbox.com % Website: http://www.astra-toolbox.com/ %-------------------------------------------------------------------------- - addpath(genpath('../algorithms/plot_geom')); % add plot_geom tools to matlab path + if exist('astra_create_example_cone') ~= 2 + error('Please add astra/algorithms/plot_geom to your path to use this function') + end if is_vol_geom(geometry) - draw_vol_geom(geometry, varargin{:}); + draw.draw_vol_geom(geometry, varargin{:}); elseif is_proj_geom(geometry) - draw_proj_geom(geometry, varargin{:}); + draw.draw_proj_geom(geometry, varargin{:}); elseif ischar(geometry) % assume 'geometry' is a path to a CAD file - draw_cad_phantom(geometry, varargin{:}); + draw.draw_cad_phantom(geometry, varargin{:}); end % ---- helper functions ---- -- cgit v1.2.3