%% Reduce Number of Patch Faces
% This example illustrates the effect of reducing the number of faces to
% only 15% of the original value.

% Copyright 2015 The MathWorks, Inc.


figure
[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
p.FaceColor = 'w';
p.EdgeColor = 'b';
daspect([1,1,1])
view(3)

%%
% Reduce the number of faces.
reducepatch(p,0.15)

