diff +parametrization/old/shape_linesegments.m @ 427:a613960a157b feature/quantumTriangles

merged with feature/beams
author Ylva Rydin <ylva.rydin@telia.com>
date Thu, 26 Jan 2017 15:59:25 +0100
parents 81e0ead29431
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+parametrization/old/shape_linesegments.m	Thu Jan 26 15:59:25 2017 +0100
@@ -0,0 +1,9 @@
+% Converts a shape into a cell array of linesegments shorter than h.
+function l = shape_linesegments(s,h)
+    l = {};
+
+    for i = 1:length(s)
+        t = parametrization.curve_discretise(s{i},h);
+        l = [l, parametrization.curve_linesegments(s{i},t)];
+    end
+end
\ No newline at end of file