Mercurial > repos > public > sbplib
comparison +parametrization/old/shape_linesegments.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 81e0ead29431 |
children |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
1 % Converts a shape into a cell array of linesegments shorter than h. | |
2 function l = shape_linesegments(s,h) | |
3 l = {}; | |
4 | |
5 for i = 1:length(s) | |
6 t = parametrization.curve_discretise(s{i},h); | |
7 l = [l, parametrization.curve_linesegments(s{i},t)]; | |
8 end | |
9 end |