add_patch2slice.m.html CLAWPACK  
 Source file:   add_patch2slice.m
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/matlab
 Converted:   Mon Jan 21 2013 at 20:15:59   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

function add_patch2slice(sdir,sval,snum,xc,yc,zc, xe,ye,ze, q,level,...

% Internal matlab routine for Clawpack graphics.

% This routine adds a new patch to slice 'snum', in direction 'sdir', and sets
% various initial user defined settings.

slices = get_slices(sdir);
slice = slices{snum};

% Mask any patches that might be underneath the new patch we want to add.
if (maskflag == 1)

% Get the new patch
new_patch = create_patch(xc,yc,zc,xe,ye,ze,q,sdir,sval,contourlevels,...

% Finally add the patch to current slice, and update figure UserData.
slices{snum}{level}(end+1) = new_patch;
set_slices(sdir, slices);