Mercurial > repos > public > sbplib
view +grid/old/shape_discretise.m @ 99:ecf77a50d4fe feature/arclen-param
The arclength parameter function was slow because it called fzero. Now it is constructed once and for all with splines. Much better performance.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Sun, 06 Dec 2015 15:41:42 +0100 |
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