view +grid/old/shape_discretise.m @ 54:2194cd385419

Euler1d: Fixed russian dissipation. Cleaned up. Added non-working BC.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 11 Nov 2015 19:21:38 -0800
parents 48b6fb693025
children
line wrap: on
line source

% Discretises a shape such that points on the curves are no further than h appart.
function p = shape_discretise(s,h)
    p = [];
    for i = 1:length(s)
        [~,pt] = grid.curve_discretise(s{i},h);
        p = [p, pt];
    end
end