Mercurial > repos > public > sbplib
diff +multiblock/Def.m @ 773:edb1d60b0b77 feature/grids
Return line handles from show methods in Def and Ti
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 18 Jul 2018 15:26:15 -0700 |
parents | 687756646aa9 |
children |
line wrap: on
line diff
--- a/+multiblock/Def.m Wed Jul 18 11:26:10 2018 -0700 +++ b/+multiblock/Def.m Wed Jul 18 15:26:15 2018 -0700 @@ -48,13 +48,14 @@ g = multiblock.Grid(grids, obj.connections, obj.boundaryGroups); end - function show(obj, label, gridLines, varargin) + function h = show(obj, label, gridLines, varargin) default_arg('label', 'name') default_arg('gridLines', false); + h = []; if isempty('label') && ~gridLines for i = 1:obj.nBlocks - obj.blockMaps{i}.show(2,2); + h = [h, obj.blockMaps{i}.show(2,2)]; end axis equal return @@ -63,7 +64,7 @@ if gridLines ms = obj.getGridSizes(varargin{:}); for i = 1:obj.nBlocks - obj.blockMaps{i}.show(ms{i}(1),ms{i}(2)); + h = [h, obj.blockMaps{i}.show(ms{i}(1),ms{i}(2))]; end end